@galacean/engine-loader 0.9.21 → 0.9.22

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
@@ -2,36 +2,96 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _extends = require('@swc/helpers/src/_extends.mjs');
6
- var _inherits = require('@swc/helpers/src/_inherits.mjs');
7
- var _ts_decorate = require('@swc/helpers/src/_ts_decorate.mjs');
8
5
  var engineCore = require('@galacean/engine-core');
9
6
  var engineMath = require('@galacean/engine-math');
10
- var _async_to_generator = require('@swc/helpers/src/_async_to_generator.mjs');
11
- var _ts_generator = require('@swc/helpers/src/_ts_generator.mjs');
12
7
  var engineDraco = require('@galacean/engine-draco');
13
- var _to_consumable_array = require('@swc/helpers/src/_to_consumable_array.mjs');
14
- var _instanceof = require('@swc/helpers/src/_instanceof.mjs');
15
- var _create_for_of_iterator_helper_loose = require('@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs');
16
8
  var engineRhiWebgl = require('@galacean/engine-rhi-webgl');
17
- var _create_class = require('@swc/helpers/src/_create_class.mjs');
18
- var _construct = require('@swc/helpers/src/_construct.mjs');
19
9
 
20
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+ function _extends() {
11
+ _extends = Object.assign || function assign(target) {
12
+ for (var i = 1; i < arguments.length; i++) {
13
+ var source = arguments[i];
14
+ for (var key in source) if (Object.prototype.hasOwnProperty.call(source, key)) target[key] = source[key];
15
+ }
16
+
17
+ return target;
18
+ };
19
+
20
+ return _extends.apply(this, arguments);
21
+ }
22
+
23
+ function _set_prototype_of(o, p) {
24
+ _set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
25
+ o.__proto__ = p;
21
26
 
22
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
23
- var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
24
- var _ts_decorate__default = /*#__PURE__*/_interopDefaultLegacy(_ts_decorate);
25
- var _async_to_generator__default = /*#__PURE__*/_interopDefaultLegacy(_async_to_generator);
26
- var _ts_generator__default = /*#__PURE__*/_interopDefaultLegacy(_ts_generator);
27
- var _to_consumable_array__default = /*#__PURE__*/_interopDefaultLegacy(_to_consumable_array);
28
- var _instanceof__default = /*#__PURE__*/_interopDefaultLegacy(_instanceof);
29
- var _create_for_of_iterator_helper_loose__default = /*#__PURE__*/_interopDefaultLegacy(_create_for_of_iterator_helper_loose);
30
- var _create_class__default = /*#__PURE__*/_interopDefaultLegacy(_create_class);
31
- var _construct__default = /*#__PURE__*/_interopDefaultLegacy(_construct);
27
+ return o;
28
+ };
29
+
30
+ return _set_prototype_of(o, p);
31
+ }
32
+
33
+ function _inherits(subClass, superClass) {
34
+ if (typeof superClass !== "function" && superClass !== null) {
35
+ throw new TypeError("Super expression must either be null or a function");
36
+ }
37
+
38
+ subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
39
+
40
+ if (superClass) _set_prototype_of(subClass, superClass);
41
+ }
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
+ }
91
+ }
32
92
 
33
93
  var AnimatorControllerLoader = /*#__PURE__*/ function(Loader) {
34
- _inherits__default['default'](AnimatorControllerLoader, Loader);
94
+ _inherits(AnimatorControllerLoader, Loader);
35
95
  function AnimatorControllerLoader() {
36
96
  return Loader.apply(this, arguments);
37
97
  }
@@ -39,7 +99,7 @@ var AnimatorControllerLoader = /*#__PURE__*/ function(Loader) {
39
99
  _proto.load = function load(item, resourceManager) {
40
100
  var _this = this;
41
101
  return new engineCore.AssetPromise(function(resolve, reject) {
42
- _this.request(item.url, _extends__default['default']({}, item, {
102
+ _this.request(item.url, _extends({}, item, {
43
103
  type: "json"
44
104
  })).then(function(data) {
45
105
  var animatorController = new engineCore.AnimatorController();
@@ -103,7 +163,7 @@ var AnimatorControllerLoader = /*#__PURE__*/ function(Loader) {
103
163
  };
104
164
  return AnimatorControllerLoader;
105
165
  }(engineCore.Loader);
106
- AnimatorControllerLoader = _ts_decorate__default['default']([
166
+ AnimatorControllerLoader = __decorate([
107
167
  engineCore.resourceLoader(engineCore.AssetType.AnimatorController, [
108
168
  "json"
109
169
  ], false)
@@ -113,7 +173,7 @@ function isBase64(url) {
113
173
  return /^data:(.+?);base64,/.test(url);
114
174
  }
115
175
  var BufferLoader = /*#__PURE__*/ function(Loader) {
116
- _inherits__default['default'](BufferLoader, Loader);
176
+ _inherits(BufferLoader, Loader);
117
177
  function BufferLoader() {
118
178
  return Loader.apply(this, arguments);
119
179
  }
@@ -129,13 +189,13 @@ var BufferLoader = /*#__PURE__*/ function(Loader) {
129
189
  resolve(result.buffer);
130
190
  });
131
191
  }
132
- return this.request(url, _extends__default['default']({}, item, {
192
+ return this.request(url, _extends({}, item, {
133
193
  type: "arraybuffer"
134
194
  }));
135
195
  };
136
196
  return BufferLoader;
137
197
  }(engineCore.Loader);
138
- BufferLoader = _ts_decorate__default['default']([
198
+ BufferLoader = __decorate([
139
199
  engineCore.resourceLoader(engineCore.AssetType.Buffer, [
140
200
  "bin",
141
201
  "r3bin"
@@ -143,7 +203,7 @@ BufferLoader = _ts_decorate__default['default']([
143
203
  ], BufferLoader);
144
204
 
145
205
  var EnvLoader = /*#__PURE__*/ function(Loader) {
146
- _inherits__default['default'](EnvLoader, Loader);
206
+ _inherits(EnvLoader, Loader);
147
207
  function EnvLoader() {
148
208
  return Loader.apply(this, arguments);
149
209
  }
@@ -186,14 +246,45 @@ var EnvLoader = /*#__PURE__*/ function(Loader) {
186
246
  };
187
247
  return EnvLoader;
188
248
  }(engineCore.Loader);
189
- EnvLoader = _ts_decorate__default['default']([
249
+ EnvLoader = __decorate([
190
250
  engineCore.resourceLoader(engineCore.AssetType.Env, [
191
251
  "env"
192
252
  ])
193
253
  ], EnvLoader);
194
254
 
255
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
256
+ try {
257
+ var info = gen[key](arg);
258
+ var value = info.value;
259
+ } catch (error) {
260
+ reject(error);
261
+ return;
262
+ }
263
+ if (info.done) resolve(value);
264
+ else Promise.resolve(value).then(_next, _throw);
265
+ }
266
+ function _async_to_generator(fn) {
267
+ return function() {
268
+ var self = this, args = arguments;
269
+
270
+ return new Promise(function(resolve, reject) {
271
+ var gen = fn.apply(self, args);
272
+
273
+ function _next(value) {
274
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
275
+ }
276
+
277
+ function _throw(err) {
278
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
279
+ }
280
+
281
+ _next(undefined);
282
+ });
283
+ };
284
+ }
285
+
195
286
  var FontLoader = /*#__PURE__*/ function(Loader) {
196
- _inherits__default['default'](FontLoader, Loader);
287
+ _inherits(FontLoader, Loader);
197
288
  function FontLoader() {
198
289
  return Loader.apply(this, arguments);
199
290
  }
@@ -222,9 +313,9 @@ var FontLoader = /*#__PURE__*/ function(Loader) {
222
313
  });
223
314
  };
224
315
  _proto._registerFont = function _registerFont(fontName, fontUrl) {
225
- return _async_to_generator__default['default'](function() {
316
+ return _async_to_generator(function() {
226
317
  var fontFace;
227
- return _ts_generator__default['default'](this, function(_state) {
318
+ return __generator(this, function(_state) {
228
319
  switch(_state.label){
229
320
  case 0:
230
321
  fontFace = new FontFace(fontName, "url(" + fontUrl + ")");
@@ -244,7 +335,7 @@ var FontLoader = /*#__PURE__*/ function(Loader) {
244
335
  };
245
336
  return FontLoader;
246
337
  }(engineCore.Loader);
247
- FontLoader = _ts_decorate__default['default']([
338
+ FontLoader = __decorate([
248
339
  engineCore.resourceLoader(engineCore.AssetType.Font, [
249
340
  "font"
250
341
  ], false)
@@ -835,6 +926,43 @@ var TextureWrapMode;
835
926
  return GLTFUtil;
836
927
  }();
837
928
 
929
+ function _array_like_to_array(arr, len) {
930
+ if (len == null || len > arr.length) len = arr.length;
931
+
932
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
933
+
934
+ return arr2;
935
+ }
936
+
937
+ function _array_without_holes(arr) {
938
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
939
+ }
940
+
941
+ function _iterable_to_array(iter) {
942
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
943
+ return Array.from(iter);
944
+ }
945
+ }
946
+
947
+ function _non_iterable_spread() {
948
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
949
+ }
950
+
951
+ function _unsupported_iterable_to_array(o, minLen) {
952
+ if (!o) return;
953
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
954
+
955
+ var n = Object.prototype.toString.call(o).slice(8, -1);
956
+
957
+ if (n === "Object" && o.constructor) n = o.constructor.name;
958
+ if (n === "Map" || n === "Set") return Array.from(n);
959
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
960
+ }
961
+
962
+ function _to_consumable_array(arr) {
963
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
964
+ }
965
+
838
966
  var Parser = /*#__PURE__*/ function() {
839
967
  function Parser() {}
840
968
  Parser.parseEngineResource = function parseEngineResource(extensionName, extensionSchema, parseResource, context) {
@@ -849,7 +977,7 @@ var Parser = /*#__PURE__*/ function() {
849
977
  extensionSchema,
850
978
  parseResource,
851
979
  context
852
- ].concat(_to_consumable_array__default['default'](extra)));
980
+ ].concat(_to_consumable_array(extra)));
853
981
  }
854
982
  }
855
983
  };
@@ -863,7 +991,7 @@ var Parser = /*#__PURE__*/ function() {
863
991
  return (_parsers_ = parsers[0]).createEngineResource.apply(_parsers_, [
864
992
  extensionSchema,
865
993
  context
866
- ].concat(_to_consumable_array__default['default'](extra)));
994
+ ].concat(_to_consumable_array(extra)));
867
995
  }
868
996
  };
869
997
  Parser.hasExtensionParser = function hasExtensionParser(extensionName) {
@@ -888,7 +1016,9 @@ var Parser = /*#__PURE__*/ function() {
888
1016
  };
889
1017
  return Parser;
890
1018
  }();
891
- Parser._extensionParsers = {};
1019
+ (function() {
1020
+ Parser._extensionParsers = {};
1021
+ })();
892
1022
  /**
893
1023
  * Declare ExtensionParser's decorator.
894
1024
  * @param extensionName - Extension name
@@ -918,7 +1048,7 @@ var ExtensionParser = /*#__PURE__*/ function() {
918
1048
  }();
919
1049
 
920
1050
  var KHR_draco_mesh_compression = /*#__PURE__*/ function(ExtensionParser) {
921
- _inherits__default['default'](KHR_draco_mesh_compression1, ExtensionParser);
1051
+ _inherits(KHR_draco_mesh_compression1, ExtensionParser);
922
1052
  function KHR_draco_mesh_compression1() {
923
1053
  return ExtensionParser.apply(this, arguments);
924
1054
  }
@@ -958,12 +1088,18 @@ var KHR_draco_mesh_compression = /*#__PURE__*/ function(ExtensionParser) {
958
1088
  };
959
1089
  return KHR_draco_mesh_compression1;
960
1090
  }(ExtensionParser);
961
- KHR_draco_mesh_compression = _ts_decorate__default['default']([
1091
+ KHR_draco_mesh_compression = __decorate([
962
1092
  registerExtension("KHR_draco_mesh_compression")
963
1093
  ], KHR_draco_mesh_compression);
964
1094
 
1095
+ function _instanceof(left, right) {
1096
+ if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
1097
+ return !!right[Symbol.hasInstance](left);
1098
+ } else return left instanceof right;
1099
+ }
1100
+
965
1101
  var KHR_lights_punctual = /*#__PURE__*/ function(ExtensionParser) {
966
- _inherits__default['default'](KHR_lights_punctual, ExtensionParser);
1102
+ _inherits(KHR_lights_punctual, ExtensionParser);
967
1103
  function KHR_lights_punctual() {
968
1104
  return ExtensionParser.apply(this, arguments);
969
1105
  }
@@ -983,10 +1119,10 @@ var KHR_lights_punctual = /*#__PURE__*/ function(ExtensionParser) {
983
1119
  light.color.set(color[0], color[1], color[2], 1);
984
1120
  }
985
1121
  light.intensity = intensity;
986
- if (range && !_instanceof__default['default'](light, engineCore.DirectLight)) {
1122
+ if (range && !_instanceof(light, engineCore.DirectLight)) {
987
1123
  light.distance = range;
988
1124
  }
989
- if (spot && _instanceof__default['default'](light, engineCore.SpotLight)) {
1125
+ if (spot && _instanceof(light, engineCore.SpotLight)) {
990
1126
  var _spot_innerConeAngle = spot.innerConeAngle, innerConeAngle = _spot_innerConeAngle === void 0 ? 0 : _spot_innerConeAngle, _spot_outerConeAngle = spot.outerConeAngle, outerConeAngle = _spot_outerConeAngle === void 0 ? Math.PI / 4 : _spot_outerConeAngle;
991
1127
  light.angle = innerConeAngle;
992
1128
  light.penumbra = outerConeAngle - innerConeAngle;
@@ -996,12 +1132,12 @@ var KHR_lights_punctual = /*#__PURE__*/ function(ExtensionParser) {
996
1132
  };
997
1133
  return KHR_lights_punctual;
998
1134
  }(ExtensionParser);
999
- KHR_lights_punctual = _ts_decorate__default['default']([
1135
+ KHR_lights_punctual = __decorate([
1000
1136
  registerExtension("KHR_lights_punctual")
1001
1137
  ], KHR_lights_punctual);
1002
1138
 
1003
1139
  var MaterialParser = /*#__PURE__*/ function(Parser1) {
1004
- _inherits__default['default'](MaterialParser, Parser1);
1140
+ _inherits(MaterialParser, Parser1);
1005
1141
  function MaterialParser() {
1006
1142
  return Parser1.apply(this, arguments);
1007
1143
  }
@@ -1120,7 +1256,7 @@ var MaterialParser = /*#__PURE__*/ function(Parser1) {
1120
1256
  }(Parser);
1121
1257
 
1122
1258
  var KHR_materials_clearcoat = /*#__PURE__*/ function(ExtensionParser) {
1123
- _inherits__default['default'](KHR_materials_clearcoat, ExtensionParser);
1259
+ _inherits(KHR_materials_clearcoat, ExtensionParser);
1124
1260
  function KHR_materials_clearcoat() {
1125
1261
  return ExtensionParser.apply(this, arguments);
1126
1262
  }
@@ -1145,12 +1281,12 @@ var KHR_materials_clearcoat = /*#__PURE__*/ function(ExtensionParser) {
1145
1281
  };
1146
1282
  return KHR_materials_clearcoat;
1147
1283
  }(ExtensionParser);
1148
- KHR_materials_clearcoat = _ts_decorate__default['default']([
1284
+ KHR_materials_clearcoat = __decorate([
1149
1285
  registerExtension("KHR_materials_clearcoat")
1150
1286
  ], KHR_materials_clearcoat);
1151
1287
 
1152
1288
  var KHR_materials_ior = /*#__PURE__*/ function(ExtensionParser) {
1153
- _inherits__default['default'](KHR_materials_ior, ExtensionParser);
1289
+ _inherits(KHR_materials_ior, ExtensionParser);
1154
1290
  function KHR_materials_ior() {
1155
1291
  return ExtensionParser.apply(this, arguments);
1156
1292
  }
@@ -1161,12 +1297,12 @@ var KHR_materials_ior = /*#__PURE__*/ function(ExtensionParser) {
1161
1297
  };
1162
1298
  return KHR_materials_ior;
1163
1299
  }(ExtensionParser);
1164
- KHR_materials_ior = _ts_decorate__default['default']([
1300
+ KHR_materials_ior = __decorate([
1165
1301
  registerExtension("KHR_materials_ior")
1166
1302
  ], KHR_materials_ior);
1167
1303
 
1168
1304
  var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(ExtensionParser) {
1169
- _inherits__default['default'](KHR_materials_pbrSpecularGlossiness, ExtensionParser);
1305
+ _inherits(KHR_materials_pbrSpecularGlossiness, ExtensionParser);
1170
1306
  function KHR_materials_pbrSpecularGlossiness() {
1171
1307
  return ExtensionParser.apply(this, arguments);
1172
1308
  }
@@ -1196,12 +1332,12 @@ var KHR_materials_pbrSpecularGlossiness = /*#__PURE__*/ function(ExtensionParser
1196
1332
  };
1197
1333
  return KHR_materials_pbrSpecularGlossiness;
1198
1334
  }(ExtensionParser);
1199
- KHR_materials_pbrSpecularGlossiness = _ts_decorate__default['default']([
1335
+ KHR_materials_pbrSpecularGlossiness = __decorate([
1200
1336
  registerExtension("KHR_materials_pbrSpecularGlossiness")
1201
1337
  ], KHR_materials_pbrSpecularGlossiness);
1202
1338
 
1203
1339
  var KHR_materials_unlit = /*#__PURE__*/ function(ExtensionParser) {
1204
- _inherits__default['default'](KHR_materials_unlit, ExtensionParser);
1340
+ _inherits(KHR_materials_unlit, ExtensionParser);
1205
1341
  function KHR_materials_unlit() {
1206
1342
  return ExtensionParser.apply(this, arguments);
1207
1343
  }
@@ -1213,12 +1349,12 @@ var KHR_materials_unlit = /*#__PURE__*/ function(ExtensionParser) {
1213
1349
  };
1214
1350
  return KHR_materials_unlit;
1215
1351
  }(ExtensionParser);
1216
- KHR_materials_unlit = _ts_decorate__default['default']([
1352
+ KHR_materials_unlit = __decorate([
1217
1353
  registerExtension("KHR_materials_unlit")
1218
1354
  ], KHR_materials_unlit);
1219
1355
 
1220
1356
  var KHR_materials_variants = /*#__PURE__*/ function(ExtensionParser) {
1221
- _inherits__default['default'](KHR_materials_variants, ExtensionParser);
1357
+ _inherits(KHR_materials_variants, ExtensionParser);
1222
1358
  function KHR_materials_variants() {
1223
1359
  return ExtensionParser.apply(this, arguments);
1224
1360
  }
@@ -1240,23 +1376,23 @@ var KHR_materials_variants = /*#__PURE__*/ function(ExtensionParser) {
1240
1376
  };
1241
1377
  return KHR_materials_variants;
1242
1378
  }(ExtensionParser);
1243
- KHR_materials_variants = _ts_decorate__default['default']([
1379
+ KHR_materials_variants = __decorate([
1244
1380
  registerExtension("KHR_materials_variants")
1245
1381
  ], KHR_materials_variants);
1246
1382
 
1247
1383
  var KHR_mesh_quantization = /*#__PURE__*/ function(ExtensionParser) {
1248
- _inherits__default['default'](KHR_mesh_quantization, ExtensionParser);
1384
+ _inherits(KHR_mesh_quantization, ExtensionParser);
1249
1385
  function KHR_mesh_quantization() {
1250
1386
  return ExtensionParser.apply(this, arguments);
1251
1387
  }
1252
1388
  return KHR_mesh_quantization;
1253
1389
  }(ExtensionParser);
1254
- KHR_mesh_quantization = _ts_decorate__default['default']([
1390
+ KHR_mesh_quantization = __decorate([
1255
1391
  registerExtension("KHR_mesh_quantization")
1256
1392
  ], KHR_mesh_quantization);
1257
1393
 
1258
1394
  var KHR_texture_transform = /*#__PURE__*/ function(ExtensionParser) {
1259
- _inherits__default['default'](KHR_texture_transform, ExtensionParser);
1395
+ _inherits(KHR_texture_transform, ExtensionParser);
1260
1396
  function KHR_texture_transform() {
1261
1397
  return ExtensionParser.apply(this, arguments);
1262
1398
  }
@@ -1280,12 +1416,12 @@ var KHR_texture_transform = /*#__PURE__*/ function(ExtensionParser) {
1280
1416
  };
1281
1417
  return KHR_texture_transform;
1282
1418
  }(ExtensionParser);
1283
- KHR_texture_transform = _ts_decorate__default['default']([
1419
+ KHR_texture_transform = __decorate([
1284
1420
  registerExtension("KHR_texture_transform")
1285
1421
  ], KHR_texture_transform);
1286
1422
 
1287
1423
  var GalaceanMaterialsRemap = /*#__PURE__*/ function(ExtensionParser) {
1288
- _inherits__default['default'](GalaceanMaterialsRemap, ExtensionParser);
1424
+ _inherits(GalaceanMaterialsRemap, ExtensionParser);
1289
1425
  function GalaceanMaterialsRemap() {
1290
1426
  return ExtensionParser.apply(this, arguments);
1291
1427
  }
@@ -1297,18 +1433,38 @@ var GalaceanMaterialsRemap = /*#__PURE__*/ function(ExtensionParser) {
1297
1433
  };
1298
1434
  return GalaceanMaterialsRemap;
1299
1435
  }(ExtensionParser);
1300
- GalaceanMaterialsRemap = _ts_decorate__default['default']([
1436
+ GalaceanMaterialsRemap = __decorate([
1301
1437
  registerExtension("OASIS_materials_remap")
1302
1438
  ], GalaceanMaterialsRemap);
1303
1439
 
1440
+ function _create_for_of_iterator_helper_loose(o, allowArrayLike) {
1441
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
1442
+
1443
+ if (it) return (it = it.call(o)).next.bind(it);
1444
+ // Fallback for engines without symbol support
1445
+ if (Array.isArray(o) || (it = _unsupported_iterable_to_array(o)) || allowArrayLike && o && typeof o.length === "number") {
1446
+ if (it) o = it;
1447
+
1448
+ var i = 0;
1449
+
1450
+ return function() {
1451
+ if (i >= o.length) return { done: true };
1452
+
1453
+ return { done: false, value: o[i++] };
1454
+ };
1455
+ }
1456
+
1457
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1458
+ }
1459
+
1304
1460
  var AnimationParser = /*#__PURE__*/ function(Parser) {
1305
- _inherits__default['default'](AnimationParser, Parser);
1461
+ _inherits(AnimationParser, Parser);
1306
1462
  function AnimationParser() {
1307
1463
  return Parser.apply(this, arguments);
1308
1464
  }
1309
1465
  var _proto = AnimationParser.prototype;
1310
1466
  _proto.parse = function parse(context) {
1311
- var gltf = context.gltf, buffers = context.buffers, glTFResource = context.glTFResource;
1467
+ var gltf = context.gltf; context.buffers; var glTFResource = context.glTFResource;
1312
1468
  var entities = glTFResource.entities;
1313
1469
  var animations = gltf.animations, accessors = gltf.accessors;
1314
1470
  if (!animations) {
@@ -1353,7 +1509,7 @@ var AnimationParser = /*#__PURE__*/ function(Parser) {
1353
1509
  samplerInterpolation = engineCore.InterpolationType.Linear;
1354
1510
  break;
1355
1511
  }
1356
- var maxTime = input[input.length - 1];
1512
+ input[input.length - 1];
1357
1513
  sampleDataCollection.push({
1358
1514
  type: outputAccessor.type,
1359
1515
  interpolation: samplerInterpolation,
@@ -1479,7 +1635,7 @@ var AnimationParser = /*#__PURE__*/ function(Parser) {
1479
1635
  }(Parser);
1480
1636
 
1481
1637
  var BufferParser = /*#__PURE__*/ function(Parser) {
1482
- _inherits__default['default'](BufferParser, Parser);
1638
+ _inherits(BufferParser, Parser);
1483
1639
  function BufferParser() {
1484
1640
  return Parser.apply(this, arguments);
1485
1641
  }
@@ -1518,7 +1674,7 @@ var BufferParser = /*#__PURE__*/ function(Parser) {
1518
1674
  }(Parser);
1519
1675
 
1520
1676
  var EntityParser = /*#__PURE__*/ function(Parser) {
1521
- _inherits__default['default'](EntityParser, Parser);
1677
+ _inherits(EntityParser, Parser);
1522
1678
  function EntityParser() {
1523
1679
  return Parser.apply(this, arguments);
1524
1680
  }
@@ -1595,10 +1751,12 @@ var EntityParser = /*#__PURE__*/ function(Parser) {
1595
1751
  };
1596
1752
  return EntityParser;
1597
1753
  }(Parser);
1598
- /** @internal */ EntityParser._defaultName = "_GLTF_ENTITY_";
1754
+ (function() {
1755
+ /** @internal */ EntityParser._defaultName = "_GLTF_ENTITY_";
1756
+ })();
1599
1757
 
1600
1758
  var MeshParser = /*#__PURE__*/ function(Parser1) {
1601
- _inherits__default['default'](MeshParser, Parser1);
1759
+ _inherits(MeshParser, Parser1);
1602
1760
  function MeshParser() {
1603
1761
  return Parser1.apply(this, arguments);
1604
1762
  }
@@ -1665,7 +1823,7 @@ var MeshParser = /*#__PURE__*/ function(Parser1) {
1665
1823
  };
1666
1824
  _proto._parseMeshFromGLTFPrimitive = function _parseMeshFromGLTFPrimitive(context, mesh, gltfMesh, gltfPrimitive, gltf, getVertexBufferData, getBlendShapeData, getIndexBufferData, keepMeshData) {
1667
1825
  var accessors = gltf.accessors;
1668
- var buffers = context.buffers;
1826
+ context.buffers;
1669
1827
  var attributes = gltfPrimitive.attributes, targets = gltfPrimitive.targets, indices = gltfPrimitive.indices, mode = gltfPrimitive.mode;
1670
1828
  var engine = mesh.engine;
1671
1829
  var vertexElements = new Array();
@@ -1917,10 +2075,12 @@ var MeshParser = /*#__PURE__*/ function(Parser1) {
1917
2075
  };
1918
2076
  return MeshParser;
1919
2077
  }(Parser);
1920
- MeshParser._tempVector3 = new engineMath.Vector3();
2078
+ (function() {
2079
+ MeshParser._tempVector3 = new engineMath.Vector3();
2080
+ })();
1921
2081
 
1922
- var SceneParser = /*#__PURE__*/ function(Parser1) {
1923
- _inherits__default['default'](SceneParser, Parser1);
2082
+ var SceneParser$1 = /*#__PURE__*/ function(Parser1) {
2083
+ _inherits(SceneParser, Parser1);
1924
2084
  function SceneParser() {
1925
2085
  return Parser1.apply(this, arguments);
1926
2086
  }
@@ -2078,13 +2238,13 @@ var SceneParser = /*#__PURE__*/ function(Parser1) {
2078
2238
  }(Parser);
2079
2239
 
2080
2240
  var SkinParser = /*#__PURE__*/ function(Parser) {
2081
- _inherits__default['default'](SkinParser, Parser);
2241
+ _inherits(SkinParser, Parser);
2082
2242
  function SkinParser() {
2083
2243
  return Parser.apply(this, arguments);
2084
2244
  }
2085
2245
  var _proto = SkinParser.prototype;
2086
2246
  _proto.parse = function parse(context) {
2087
- var glTFResource = context.glTFResource, gltf = context.gltf, buffers = context.buffers;
2247
+ var glTFResource = context.glTFResource, gltf = context.gltf; context.buffers;
2088
2248
  var entities = glTFResource.entities;
2089
2249
  var gltfSkins = gltf.skins;
2090
2250
  if (!gltfSkins) return;
@@ -2132,7 +2292,7 @@ var SkinParser = /*#__PURE__*/ function(Parser) {
2132
2292
  };
2133
2293
  _proto._findSkeletonRootBone = function _findSkeletonRootBone(joints, entities) {
2134
2294
  var paths = {};
2135
- for(var _iterator = _create_for_of_iterator_helper_loose__default['default'](joints), _step; !(_step = _iterator()).done;){
2295
+ for(var _iterator = _create_for_of_iterator_helper_loose(joints), _step; !(_step = _iterator()).done;){
2136
2296
  var index = _step.value;
2137
2297
  var path = new Array();
2138
2298
  var entity = entities[index];
@@ -2162,7 +2322,7 @@ var SkinParser = /*#__PURE__*/ function(Parser) {
2162
2322
  }(Parser);
2163
2323
 
2164
2324
  var TextureParser = /*#__PURE__*/ function(Parser) {
2165
- _inherits__default['default'](TextureParser, Parser);
2325
+ _inherits(TextureParser, Parser);
2166
2326
  function TextureParser() {
2167
2327
  return Parser.apply(this, arguments);
2168
2328
  }
@@ -2234,11 +2394,13 @@ var TextureParser = /*#__PURE__*/ function(Parser) {
2234
2394
  };
2235
2395
  return TextureParser;
2236
2396
  }(Parser);
2237
- var _obj;
2238
- TextureParser._wrapMap = (_obj = {}, _obj[TextureWrapMode.CLAMP_TO_EDGE] = engineCore.TextureWrapMode.Clamp, _obj[TextureWrapMode.MIRRORED_REPEAT] = engineCore.TextureWrapMode.Mirror, _obj[TextureWrapMode.REPEAT] = engineCore.TextureWrapMode.Repeat, _obj);
2397
+ (function() {
2398
+ var _obj;
2399
+ TextureParser._wrapMap = (_obj = {}, _obj[TextureWrapMode.CLAMP_TO_EDGE] = engineCore.TextureWrapMode.Clamp, _obj[TextureWrapMode.MIRRORED_REPEAT] = engineCore.TextureWrapMode.Mirror, _obj[TextureWrapMode.REPEAT] = engineCore.TextureWrapMode.Repeat, _obj);
2400
+ })();
2239
2401
 
2240
2402
  var Validator = /*#__PURE__*/ function(Parser1) {
2241
- _inherits__default['default'](Validator, Parser1);
2403
+ _inherits(Validator, Parser1);
2242
2404
  function Validator() {
2243
2405
  return Parser1.apply(this, arguments);
2244
2406
  }
@@ -2307,22 +2469,24 @@ var GLTFParser = /*#__PURE__*/ function() {
2307
2469
  };
2308
2470
  return GLTFParser;
2309
2471
  }();
2310
- GLTFParser.defaultPipeline = new GLTFParser([
2311
- BufferParser,
2312
- Validator,
2313
- TextureParser,
2314
- MaterialParser,
2315
- MeshParser,
2316
- EntityParser,
2317
- SkinParser,
2318
- AnimationParser,
2319
- SceneParser
2320
- ]);
2472
+ (function() {
2473
+ GLTFParser.defaultPipeline = new GLTFParser([
2474
+ BufferParser,
2475
+ Validator,
2476
+ TextureParser,
2477
+ MaterialParser,
2478
+ MeshParser,
2479
+ EntityParser,
2480
+ SkinParser,
2481
+ AnimationParser,
2482
+ SceneParser$1
2483
+ ]);
2484
+ })();
2321
2485
 
2322
2486
  /**
2323
2487
  * Product after GLTF parser, usually, `defaultSceneRoot` is only needed to use.
2324
2488
  */ var GLTFResource = /*#__PURE__*/ function(RefObject) {
2325
- _inherits__default['default'](GLTFResource, RefObject);
2489
+ _inherits(GLTFResource, RefObject);
2326
2490
  function GLTFResource(engine, url) {
2327
2491
  var _this;
2328
2492
  _this = RefObject.call(this, engine) || this;
@@ -2337,7 +2501,7 @@ GLTFParser.defaultPipeline = new GLTFParser([
2337
2501
  }(engineCore.RefObject);
2338
2502
 
2339
2503
  var GLTFLoader = /*#__PURE__*/ function(Loader) {
2340
- _inherits__default['default'](GLTFLoader, Loader);
2504
+ _inherits(GLTFLoader, Loader);
2341
2505
  function GLTFLoader() {
2342
2506
  return Loader.apply(this, arguments);
2343
2507
  }
@@ -2353,7 +2517,7 @@ var GLTFLoader = /*#__PURE__*/ function(Loader) {
2353
2517
  context.keepMeshData = (_item_params_keepMeshData = (_item_params = item.params) == null ? void 0 : _item_params.keepMeshData) != null ? _item_params_keepMeshData : false;
2354
2518
  masterPromiseInfo.onCancel(function() {
2355
2519
  var chainPromises = context.chainPromises;
2356
- for(var _iterator = _create_for_of_iterator_helper_loose__default['default'](chainPromises), _step; !(_step = _iterator()).done;){
2520
+ for(var _iterator = _create_for_of_iterator_helper_loose(chainPromises), _step; !(_step = _iterator()).done;){
2357
2521
  var promise = _step.value;
2358
2522
  promise.cancel();
2359
2523
  }
@@ -2372,7 +2536,7 @@ var GLTFLoader = /*#__PURE__*/ function(Loader) {
2372
2536
  };
2373
2537
  return GLTFLoader;
2374
2538
  }(engineCore.Loader);
2375
- GLTFLoader = _ts_decorate__default['default']([
2539
+ GLTFLoader = __decorate([
2376
2540
  engineCore.resourceLoader(engineCore.AssetType.Prefab, [
2377
2541
  "gltf",
2378
2542
  "glb"
@@ -2382,7 +2546,7 @@ GLTFLoader = _ts_decorate__default['default']([
2382
2546
  var _HDRLoader;
2383
2547
  var PI = Math.PI;
2384
2548
  var HDRLoader = (_HDRLoader = /*#__PURE__*/ function(Loader) {
2385
- _inherits__default['default'](HDRLoader1, Loader);
2549
+ _inherits(HDRLoader1, Loader);
2386
2550
  function HDRLoader1() {
2387
2551
  return Loader.apply(this, arguments);
2388
2552
  }
@@ -2620,57 +2784,95 @@ var HDRLoader = (_HDRLoader = /*#__PURE__*/ function(Loader) {
2620
2784
  color.a *= M;
2621
2785
  };
2622
2786
  return HDRLoader1;
2623
- }(engineCore.Loader), _HDRLoader._rightBottomBack = new engineMath.Vector3(1.0, -1.0, -1.0), _HDRLoader._rightBottomFront = new engineMath.Vector3(1.0, -1.0, 1.0), _HDRLoader._rightUpBack = new engineMath.Vector3(1.0, 1.0, -1.0), _HDRLoader._rightUpFront = new engineMath.Vector3(1.0, 1.0, 1.0), _HDRLoader._leftBottomBack = new engineMath.Vector3(-1.0, -1.0, -1.0), _HDRLoader._leftBottomFront = new engineMath.Vector3(-1.0, -1.0, 1.0), _HDRLoader._leftUpBack = new engineMath.Vector3(-1.0, 1.0, -1.0), _HDRLoader._leftUpFront = new engineMath.Vector3(-1.0, 1.0, 1.0), _HDRLoader._faceRight = [
2624
- _HDRLoader._rightBottomBack,
2625
- _HDRLoader._rightBottomFront,
2626
- _HDRLoader._rightUpBack,
2627
- _HDRLoader._rightUpFront
2628
- ], _HDRLoader._faceLeft = [
2629
- _HDRLoader._leftBottomFront,
2630
- _HDRLoader._leftBottomBack,
2631
- _HDRLoader._leftUpFront,
2632
- _HDRLoader._leftUpBack
2633
- ], _HDRLoader._faceUp = [
2634
- _HDRLoader._leftBottomFront,
2635
- _HDRLoader._rightBottomFront,
2636
- _HDRLoader._leftBottomBack,
2637
- _HDRLoader._rightBottomBack
2638
- ], _HDRLoader._faceBottom = [
2639
- _HDRLoader._leftUpBack,
2640
- _HDRLoader._rightUpBack,
2641
- _HDRLoader._leftUpFront,
2642
- _HDRLoader._rightUpFront
2643
- ], _HDRLoader._faceFront = [
2644
- _HDRLoader._leftBottomBack,
2645
- _HDRLoader._rightBottomBack,
2646
- _HDRLoader._leftUpBack,
2647
- _HDRLoader._rightUpBack
2648
- ], _HDRLoader._faceBack = [
2649
- _HDRLoader._rightBottomFront,
2650
- _HDRLoader._leftBottomFront,
2651
- _HDRLoader._rightUpFront,
2652
- _HDRLoader._leftUpFront
2653
- ], _HDRLoader._tempVector3 = new engineMath.Vector3(), _HDRLoader._temp2Vector3 = new engineMath.Vector3(), _HDRLoader._temp3Vector3 = new engineMath.Vector3(), _HDRLoader._temp4Vector3 = new engineMath.Vector3(), _HDRLoader._temp5Vector3 = new engineMath.Vector3(), _HDRLoader);
2654
- HDRLoader = _ts_decorate__default['default']([
2787
+ }(engineCore.Loader), function() {
2788
+ _HDRLoader._rightBottomBack = new engineMath.Vector3(1.0, -1.0, -1.0);
2789
+ }(), function() {
2790
+ _HDRLoader._rightBottomFront = new engineMath.Vector3(1.0, -1.0, 1.0);
2791
+ }(), function() {
2792
+ _HDRLoader._rightUpBack = new engineMath.Vector3(1.0, 1.0, -1.0);
2793
+ }(), function() {
2794
+ _HDRLoader._rightUpFront = new engineMath.Vector3(1.0, 1.0, 1.0);
2795
+ }(), function() {
2796
+ _HDRLoader._leftBottomBack = new engineMath.Vector3(-1.0, -1.0, -1.0);
2797
+ }(), function() {
2798
+ _HDRLoader._leftBottomFront = new engineMath.Vector3(-1.0, -1.0, 1.0);
2799
+ }(), function() {
2800
+ _HDRLoader._leftUpBack = new engineMath.Vector3(-1.0, 1.0, -1.0);
2801
+ }(), function() {
2802
+ _HDRLoader._leftUpFront = new engineMath.Vector3(-1.0, 1.0, 1.0);
2803
+ }(), function() {
2804
+ _HDRLoader._faceRight = [
2805
+ _HDRLoader._rightBottomBack,
2806
+ _HDRLoader._rightBottomFront,
2807
+ _HDRLoader._rightUpBack,
2808
+ _HDRLoader._rightUpFront
2809
+ ];
2810
+ }(), function() {
2811
+ _HDRLoader._faceLeft = [
2812
+ _HDRLoader._leftBottomFront,
2813
+ _HDRLoader._leftBottomBack,
2814
+ _HDRLoader._leftUpFront,
2815
+ _HDRLoader._leftUpBack
2816
+ ];
2817
+ }(), function() {
2818
+ _HDRLoader._faceUp = [
2819
+ _HDRLoader._leftBottomFront,
2820
+ _HDRLoader._rightBottomFront,
2821
+ _HDRLoader._leftBottomBack,
2822
+ _HDRLoader._rightBottomBack
2823
+ ];
2824
+ }(), function() {
2825
+ _HDRLoader._faceBottom = [
2826
+ _HDRLoader._leftUpBack,
2827
+ _HDRLoader._rightUpBack,
2828
+ _HDRLoader._leftUpFront,
2829
+ _HDRLoader._rightUpFront
2830
+ ];
2831
+ }(), function() {
2832
+ _HDRLoader._faceFront = [
2833
+ _HDRLoader._leftBottomBack,
2834
+ _HDRLoader._rightBottomBack,
2835
+ _HDRLoader._leftUpBack,
2836
+ _HDRLoader._rightUpBack
2837
+ ];
2838
+ }(), function() {
2839
+ _HDRLoader._faceBack = [
2840
+ _HDRLoader._rightBottomFront,
2841
+ _HDRLoader._leftBottomFront,
2842
+ _HDRLoader._rightUpFront,
2843
+ _HDRLoader._leftUpFront
2844
+ ];
2845
+ }(), function() {
2846
+ _HDRLoader._tempVector3 = new engineMath.Vector3();
2847
+ }(), function() {
2848
+ _HDRLoader._temp2Vector3 = new engineMath.Vector3();
2849
+ }(), function() {
2850
+ _HDRLoader._temp3Vector3 = new engineMath.Vector3();
2851
+ }(), function() {
2852
+ _HDRLoader._temp4Vector3 = new engineMath.Vector3();
2853
+ }(), function() {
2854
+ _HDRLoader._temp5Vector3 = new engineMath.Vector3();
2855
+ }(), _HDRLoader);
2856
+ HDRLoader = __decorate([
2655
2857
  engineCore.resourceLoader(engineCore.AssetType.HDR, [
2656
2858
  "hdr"
2657
2859
  ])
2658
2860
  ], HDRLoader);
2659
2861
 
2660
2862
  var JSONLoader = /*#__PURE__*/ function(Loader) {
2661
- _inherits__default['default'](JSONLoader, Loader);
2863
+ _inherits(JSONLoader, Loader);
2662
2864
  function JSONLoader() {
2663
2865
  return Loader.apply(this, arguments);
2664
2866
  }
2665
2867
  var _proto = JSONLoader.prototype;
2666
2868
  _proto.load = function load(item) {
2667
- return this.request(item.url, _extends__default['default']({}, item, {
2869
+ return this.request(item.url, _extends({}, item, {
2668
2870
  type: "json"
2669
2871
  }));
2670
2872
  };
2671
2873
  return JSONLoader;
2672
2874
  }(engineCore.Loader);
2673
- JSONLoader = _ts_decorate__default['default']([
2875
+ JSONLoader = __decorate([
2674
2876
  engineCore.resourceLoader(engineCore.AssetType.JSON, [
2675
2877
  "json"
2676
2878
  ], false)
@@ -2860,7 +3062,7 @@ function parseCubeKTX(dataArray) {
2860
3062
  }
2861
3063
 
2862
3064
  var KTXCubeLoader = /*#__PURE__*/ function(Loader) {
2863
- _inherits__default['default'](KTXCubeLoader, Loader);
3065
+ _inherits(KTXCubeLoader, Loader);
2864
3066
  function KTXCubeLoader() {
2865
3067
  return Loader.apply(this, arguments);
2866
3068
  }
@@ -2869,7 +3071,7 @@ var KTXCubeLoader = /*#__PURE__*/ function(Loader) {
2869
3071
  var _this = this;
2870
3072
  return new engineCore.AssetPromise(function(resolve, reject) {
2871
3073
  Promise.all(item.urls.map(function(url) {
2872
- return _this.request(url, _extends__default['default']({}, item, {
3074
+ return _this.request(url, _extends({}, item, {
2873
3075
  type: "arraybuffer"
2874
3076
  }));
2875
3077
  })).then(function(data) {
@@ -2892,12 +3094,12 @@ var KTXCubeLoader = /*#__PURE__*/ function(Loader) {
2892
3094
  };
2893
3095
  return KTXCubeLoader;
2894
3096
  }(engineCore.Loader);
2895
- KTXCubeLoader = _ts_decorate__default['default']([
3097
+ KTXCubeLoader = __decorate([
2896
3098
  engineCore.resourceLoader(engineCore.AssetType.KTXCube, [])
2897
3099
  ], KTXCubeLoader);
2898
3100
 
2899
3101
  var KTXLoader = /*#__PURE__*/ function(Loader) {
2900
- _inherits__default['default'](KTXLoader, Loader);
3102
+ _inherits(KTXLoader, Loader);
2901
3103
  function KTXLoader() {
2902
3104
  return Loader.apply(this, arguments);
2903
3105
  }
@@ -2905,7 +3107,7 @@ var KTXLoader = /*#__PURE__*/ function(Loader) {
2905
3107
  _proto.load = function load(item, resourceManager) {
2906
3108
  var _this = this;
2907
3109
  return new engineCore.AssetPromise(function(resolve, reject) {
2908
- _this.request(item.url, _extends__default['default']({}, item, {
3110
+ _this.request(item.url, _extends({}, item, {
2909
3111
  type: "arraybuffer"
2910
3112
  })).then(function(bin) {
2911
3113
  var parsedData = parseSingleKTX(bin);
@@ -2924,14 +3126,14 @@ var KTXLoader = /*#__PURE__*/ function(Loader) {
2924
3126
  };
2925
3127
  return KTXLoader;
2926
3128
  }(engineCore.Loader);
2927
- KTXLoader = _ts_decorate__default['default']([
3129
+ KTXLoader = __decorate([
2928
3130
  engineCore.resourceLoader(engineCore.AssetType.KTX, [
2929
3131
  "ktx"
2930
3132
  ])
2931
3133
  ], KTXLoader);
2932
3134
 
2933
3135
  var MaterialLoader = /*#__PURE__*/ function(Loader) {
2934
- _inherits__default['default'](MaterialLoader, Loader);
3136
+ _inherits(MaterialLoader, Loader);
2935
3137
  function MaterialLoader() {
2936
3138
  return Loader.apply(this, arguments);
2937
3139
  }
@@ -2939,7 +3141,7 @@ var MaterialLoader = /*#__PURE__*/ function(Loader) {
2939
3141
  _proto.load = function load(item, resourceManager) {
2940
3142
  var _this = this;
2941
3143
  return new engineCore.AssetPromise(function(resolve, reject) {
2942
- _this.request(item.url, _extends__default['default']({}, item, {
3144
+ _this.request(item.url, _extends({}, item, {
2943
3145
  type: "json"
2944
3146
  })).then(function(json) {
2945
3147
  var _loop = function(key) {
@@ -3013,12 +3215,30 @@ var MaterialLoader = /*#__PURE__*/ function(Loader) {
3013
3215
  };
3014
3216
  return MaterialLoader;
3015
3217
  }(engineCore.Loader);
3016
- MaterialLoader = _ts_decorate__default['default']([
3218
+ MaterialLoader = __decorate([
3017
3219
  engineCore.resourceLoader(engineCore.AssetType.Material, [
3018
3220
  "json"
3019
3221
  ])
3020
3222
  ], MaterialLoader);
3021
3223
 
3224
+ function _defineProperties(target, props) {
3225
+ for (var i = 0; i < props.length; i++) {
3226
+ var descriptor = props[i];
3227
+ descriptor.enumerable = descriptor.enumerable || false;
3228
+ descriptor.configurable = true;
3229
+
3230
+ if ("value" in descriptor) descriptor.writable = true;
3231
+
3232
+ Object.defineProperty(target, descriptor.key, descriptor);
3233
+ }
3234
+ }
3235
+ function _create_class(Constructor, protoProps, staticProps) {
3236
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3237
+ if (staticProps) _defineProperties(Constructor, staticProps);
3238
+
3239
+ return Constructor;
3240
+ }
3241
+
3022
3242
  var BufferReader = /*#__PURE__*/ function() {
3023
3243
  function BufferReader(buffer, byteOffset, byteLength, littleEndian) {
3024
3244
  if (byteOffset === void 0) byteOffset = 0;
@@ -3125,7 +3345,7 @@ var BufferReader = /*#__PURE__*/ function() {
3125
3345
  if (byteLength < maxByteLength) this._offset++;
3126
3346
  return new Uint8Array(this._dataView.buffer, this._dataView.byteOffset + byteOffset, byteLength);
3127
3347
  };
3128
- _create_class__default['default'](BufferReader, [
3348
+ _create_class(BufferReader, [
3129
3349
  {
3130
3350
  key: "offset",
3131
3351
  get: function get() {
@@ -3135,12 +3355,14 @@ var BufferReader = /*#__PURE__*/ function() {
3135
3355
  ]);
3136
3356
  return BufferReader;
3137
3357
  }();
3138
- BufferReader.imageMapping = {
3139
- 0: "image/png",
3140
- 1: "image/jpg",
3141
- 2: "image/webp",
3142
- 3: "ktx"
3143
- };
3358
+ (function() {
3359
+ BufferReader.imageMapping = {
3360
+ 0: "image/png",
3361
+ 1: "image/jpg",
3362
+ 2: "image/webp",
3363
+ 3: "ktx"
3364
+ };
3365
+ })();
3144
3366
 
3145
3367
  var decoderMap = {};
3146
3368
  /**
@@ -3179,7 +3401,7 @@ var FileHeader = /*#__PURE__*/ function() {
3179
3401
  header.headerLength = nameUint8Array.byteLength + typeUint8Array.byteLength + 9;
3180
3402
  return header;
3181
3403
  };
3182
- _create_class__default['default'](FileHeader, [
3404
+ _create_class(FileHeader, [
3183
3405
  {
3184
3406
  key: "dataLength",
3185
3407
  get: function get() {
@@ -3291,7 +3513,7 @@ exports.MeshDecoder = /*#__PURE__*/ function() {
3291
3513
  };
3292
3514
  return MeshDecoder;
3293
3515
  }();
3294
- exports.MeshDecoder = _ts_decorate__default['default']([
3516
+ exports.MeshDecoder = __decorate([
3295
3517
  decoder("Mesh")
3296
3518
  ], exports.MeshDecoder);
3297
3519
  function float32ArrayToVColor(float32Array, vertexCount) {
@@ -3394,10 +3616,42 @@ exports.Texture2DDecoder = /*#__PURE__*/ function() {
3394
3616
  };
3395
3617
  return Texture2DDecoder;
3396
3618
  }();
3397
- exports.Texture2DDecoder = _ts_decorate__default['default']([
3619
+ exports.Texture2DDecoder = __decorate([
3398
3620
  decoder("Texture2D")
3399
3621
  ], exports.Texture2DDecoder);
3400
3622
 
3623
+ function _is_native_reflect_construct() {
3624
+ if (typeof Reflect === "undefined" || !Reflect.construct) return false;
3625
+ if (Reflect.construct.sham) return false;
3626
+ if (typeof Proxy === "function") return true;
3627
+
3628
+ try {
3629
+ Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
3630
+
3631
+ return true;
3632
+ } catch (e) {
3633
+ return false;
3634
+ }
3635
+ }
3636
+
3637
+ function _construct(Parent, args, Class) {
3638
+ if (_is_native_reflect_construct()) _construct = Reflect.construct;
3639
+ else {
3640
+ _construct = function construct(Parent, args, Class) {
3641
+ var a = [null];
3642
+ a.push.apply(a, args);
3643
+ var Constructor = Function.bind.apply(Parent, a);
3644
+ var instance = new Constructor();
3645
+
3646
+ if (Class) _set_prototype_of(instance, Class.prototype);
3647
+
3648
+ return instance;
3649
+ };
3650
+ }
3651
+
3652
+ return _construct.apply(null, arguments);
3653
+ }
3654
+
3401
3655
  var ReflectionParser = /*#__PURE__*/ function() {
3402
3656
  function ReflectionParser() {}
3403
3657
  ReflectionParser.registerCustomParseComponent = function registerCustomParseComponent(componentType, handle) {
@@ -3437,7 +3691,7 @@ var ReflectionParser = /*#__PURE__*/ function() {
3437
3691
  var Class = engineCore.Loader.getClass(item.class);
3438
3692
  var _item_constructParams;
3439
3693
  var params = (_item_constructParams = item.constructParams) != null ? _item_constructParams : [];
3440
- var instance = _construct__default['default'](Class, [].concat(params));
3694
+ var instance = _construct(Class, [].concat(params));
3441
3695
  return this.parsePropsAndMethods(instance, item, engine, resourceManager);
3442
3696
  };
3443
3697
  ReflectionParser.parseBasicType = function parseBasicType(value, engine, resourceManager) {
@@ -3510,7 +3764,9 @@ var ReflectionParser = /*#__PURE__*/ function() {
3510
3764
  };
3511
3765
  return ReflectionParser;
3512
3766
  }();
3513
- ReflectionParser.customParseComponentHandles = new Map();
3767
+ (function() {
3768
+ ReflectionParser.customParseComponentHandles = new Map();
3769
+ })();
3514
3770
 
3515
3771
  var PrefabParser = /*#__PURE__*/ function() {
3516
3772
  function PrefabParser() {}
@@ -3544,6 +3800,7 @@ var ComponentMap = {
3544
3800
  TextRenderer: engineCore.TextRenderer
3545
3801
  };
3546
3802
 
3803
+ exports.InterpolableValueType = void 0;
3547
3804
  (function(InterpolableValueType) {
3548
3805
  InterpolableValueType[InterpolableValueType["Float"] = 0] = "Float";
3549
3806
  InterpolableValueType[InterpolableValueType["FloatArray"] = 1] = "FloatArray";
@@ -3700,7 +3957,7 @@ exports.AnimationClipDecoder = /*#__PURE__*/ function() {
3700
3957
  };
3701
3958
  return AnimationClipDecoder;
3702
3959
  }();
3703
- exports.AnimationClipDecoder = _ts_decorate__default['default']([
3960
+ exports.AnimationClipDecoder = __decorate([
3704
3961
  decoder("AnimationClip")
3705
3962
  ], exports.AnimationClipDecoder);
3706
3963
 
@@ -3725,7 +3982,7 @@ var SceneParserContext = /*#__PURE__*/ function() {
3725
3982
  return SceneParserContext;
3726
3983
  }();
3727
3984
 
3728
- /** @Internal */ var SceneParser$1 = /*#__PURE__*/ function() {
3985
+ /** @Internal */ var SceneParser = /*#__PURE__*/ function() {
3729
3986
  function SceneParser(context) {
3730
3987
  var _this = this;
3731
3988
  this.context = context;
@@ -3763,7 +4020,7 @@ var SceneParserContext = /*#__PURE__*/ function() {
3763
4020
  };
3764
4021
  _proto._organizeEntities = function _organizeEntities() {
3765
4022
  var _this_context = this.context, entityConfigMap = _this_context.entityConfigMap, entityMap = _this_context.entityMap, scene = _this_context.scene, rootIds = _this_context.rootIds;
3766
- for(var _iterator = _create_for_of_iterator_helper_loose__default['default'](rootIds), _step; !(_step = _iterator()).done;){
4023
+ for(var _iterator = _create_for_of_iterator_helper_loose(rootIds), _step; !(_step = _iterator()).done;){
3767
4024
  var rootId = _step.value;
3768
4025
  PrefabParser.parseChildren(entityConfigMap, entityMap, rootId);
3769
4026
  }
@@ -3817,7 +4074,7 @@ var SceneParserContext = /*#__PURE__*/ function() {
3817
4074
  }();
3818
4075
 
3819
4076
  exports.MeshLoader = /*#__PURE__*/ function(Loader) {
3820
- _inherits__default['default'](MeshLoader, Loader);
4077
+ _inherits(MeshLoader, Loader);
3821
4078
  function MeshLoader() {
3822
4079
  return Loader.apply(this, arguments);
3823
4080
  }
@@ -3836,14 +4093,14 @@ exports.MeshLoader = /*#__PURE__*/ function(Loader) {
3836
4093
  };
3837
4094
  return MeshLoader;
3838
4095
  }(engineCore.Loader);
3839
- exports.MeshLoader = _ts_decorate__default['default']([
4096
+ exports.MeshLoader = __decorate([
3840
4097
  engineCore.resourceLoader("Mesh", [
3841
4098
  "prefab"
3842
4099
  ], true)
3843
4100
  ], exports.MeshLoader);
3844
4101
 
3845
4102
  exports.EditorTextureLoader = /*#__PURE__*/ function(Loader) {
3846
- _inherits__default['default'](EditorTextureLoader, Loader);
4103
+ _inherits(EditorTextureLoader, Loader);
3847
4104
  function EditorTextureLoader() {
3848
4105
  return Loader.apply(this, arguments);
3849
4106
  }
@@ -3862,7 +4119,7 @@ exports.EditorTextureLoader = /*#__PURE__*/ function(Loader) {
3862
4119
  };
3863
4120
  return EditorTextureLoader;
3864
4121
  }(engineCore.Loader);
3865
- exports.EditorTextureLoader = _ts_decorate__default['default']([
4122
+ exports.EditorTextureLoader = __decorate([
3866
4123
  engineCore.resourceLoader("EditorTexture2D", [
3867
4124
  "prefab"
3868
4125
  ], true)
@@ -3883,7 +4140,7 @@ exports.EditorTextureLoader = _ts_decorate__default['default']([
3883
4140
  }
3884
4141
 
3885
4142
  var MeshLoader = /*#__PURE__*/ function(Loader) {
3886
- _inherits__default['default'](MeshLoader, Loader);
4143
+ _inherits(MeshLoader, Loader);
3887
4144
  function MeshLoader() {
3888
4145
  return Loader.apply(this, arguments);
3889
4146
  }
@@ -3891,7 +4148,7 @@ var MeshLoader = /*#__PURE__*/ function(Loader) {
3891
4148
  _proto.load = function load(item, resourceManager) {
3892
4149
  var _this = this;
3893
4150
  return new engineCore.AssetPromise(function(resolve, reject) {
3894
- _this.request(item.url, _extends__default['default']({}, item, {
4151
+ _this.request(item.url, _extends({}, item, {
3895
4152
  type: "arraybuffer"
3896
4153
  })).then(function(data) {
3897
4154
  return decode(data, resourceManager.engine);
@@ -3902,14 +4159,14 @@ var MeshLoader = /*#__PURE__*/ function(Loader) {
3902
4159
  };
3903
4160
  return MeshLoader;
3904
4161
  }(engineCore.Loader);
3905
- MeshLoader = _ts_decorate__default['default']([
4162
+ MeshLoader = __decorate([
3906
4163
  engineCore.resourceLoader(engineCore.AssetType.Mesh, [
3907
4164
  "mesh"
3908
4165
  ])
3909
4166
  ], MeshLoader);
3910
4167
 
3911
4168
  var SourceFontLoader = /*#__PURE__*/ function(Loader) {
3912
- _inherits__default['default'](SourceFontLoader, Loader);
4169
+ _inherits(SourceFontLoader, Loader);
3913
4170
  function SourceFontLoader() {
3914
4171
  return Loader.apply(this, arguments);
3915
4172
  }
@@ -3927,9 +4184,9 @@ var SourceFontLoader = /*#__PURE__*/ function(Loader) {
3927
4184
  });
3928
4185
  };
3929
4186
  _proto._registerFont = function _registerFont(fontName, fontUrl) {
3930
- return _async_to_generator__default['default'](function() {
4187
+ return _async_to_generator(function() {
3931
4188
  var fontFace;
3932
- return _ts_generator__default['default'](this, function(_state) {
4189
+ return __generator(this, function(_state) {
3933
4190
  switch(_state.label){
3934
4191
  case 0:
3935
4192
  fontFace = new FontFace(fontName, "url(" + fontUrl + ")");
@@ -3949,7 +4206,7 @@ var SourceFontLoader = /*#__PURE__*/ function(Loader) {
3949
4206
  };
3950
4207
  return SourceFontLoader;
3951
4208
  }(engineCore.Loader);
3952
- SourceFontLoader = _ts_decorate__default['default']([
4209
+ SourceFontLoader = __decorate([
3953
4210
  engineCore.resourceLoader(engineCore.AssetType.SourceFont, [
3954
4211
  "ttf",
3955
4212
  "otf",
@@ -3958,7 +4215,7 @@ SourceFontLoader = _ts_decorate__default['default']([
3958
4215
  ], SourceFontLoader);
3959
4216
 
3960
4217
  var SpriteAtlasLoader = /*#__PURE__*/ function(Loader) {
3961
- _inherits__default['default'](SpriteAtlasLoader, Loader);
4218
+ _inherits(SpriteAtlasLoader, Loader);
3962
4219
  function SpriteAtlasLoader() {
3963
4220
  var _this;
3964
4221
  _this = Loader.apply(this, arguments) || this;
@@ -3977,7 +4234,7 @@ var SpriteAtlasLoader = /*#__PURE__*/ function(Loader) {
3977
4234
  chainPromises[i].cancel();
3978
4235
  }
3979
4236
  });
3980
- var configPromise = _this.request(item.url, _extends__default['default']({}, item, {
4237
+ var configPromise = _this.request(item.url, _extends({}, item, {
3981
4238
  type: "json"
3982
4239
  }));
3983
4240
  chainPromises.push(configPromise);
@@ -4043,14 +4300,14 @@ var SpriteAtlasLoader = /*#__PURE__*/ function(Loader) {
4043
4300
  };
4044
4301
  return SpriteAtlasLoader;
4045
4302
  }(engineCore.Loader);
4046
- SpriteAtlasLoader = _ts_decorate__default['default']([
4303
+ SpriteAtlasLoader = __decorate([
4047
4304
  engineCore.resourceLoader(engineCore.AssetType.SpriteAtlas, [
4048
4305
  "atlas"
4049
4306
  ], false)
4050
4307
  ], SpriteAtlasLoader);
4051
4308
 
4052
4309
  var SpriteLoader = /*#__PURE__*/ function(Loader) {
4053
- _inherits__default['default'](SpriteLoader, Loader);
4310
+ _inherits(SpriteLoader, Loader);
4054
4311
  function SpriteLoader() {
4055
4312
  return Loader.apply(this, arguments);
4056
4313
  }
@@ -4058,7 +4315,7 @@ var SpriteLoader = /*#__PURE__*/ function(Loader) {
4058
4315
  _proto.load = function load(item, resourceManager) {
4059
4316
  var _this = this;
4060
4317
  return new engineCore.AssetPromise(function(resolve, reject) {
4061
- _this.request(item.url, _extends__default['default']({}, item, {
4318
+ _this.request(item.url, _extends({}, item, {
4062
4319
  type: "json"
4063
4320
  })).then(function(data) {
4064
4321
  if (data.belongToAtlas) {
@@ -4079,14 +4336,14 @@ var SpriteLoader = /*#__PURE__*/ function(Loader) {
4079
4336
  };
4080
4337
  return SpriteLoader;
4081
4338
  }(engineCore.Loader);
4082
- SpriteLoader = _ts_decorate__default['default']([
4339
+ SpriteLoader = __decorate([
4083
4340
  engineCore.resourceLoader(engineCore.AssetType.Sprite, [
4084
4341
  "sprite"
4085
4342
  ], false)
4086
4343
  ], SpriteLoader);
4087
4344
 
4088
4345
  var Texture2DLoader = /*#__PURE__*/ function(Loader) {
4089
- _inherits__default['default'](Texture2DLoader, Loader);
4346
+ _inherits(Texture2DLoader, Loader);
4090
4347
  function Texture2DLoader() {
4091
4348
  return Loader.apply(this, arguments);
4092
4349
  }
@@ -4094,7 +4351,7 @@ var Texture2DLoader = /*#__PURE__*/ function(Loader) {
4094
4351
  _proto.load = function load(item, resourceManager) {
4095
4352
  var _this = this;
4096
4353
  return new engineCore.AssetPromise(function(resolve, reject) {
4097
- _this.request(item.url, _extends__default['default']({}, item, {
4354
+ _this.request(item.url, _extends({}, item, {
4098
4355
  type: "image"
4099
4356
  })).then(function(image) {
4100
4357
  var _item_params;
@@ -4115,7 +4372,7 @@ var Texture2DLoader = /*#__PURE__*/ function(Loader) {
4115
4372
  };
4116
4373
  return Texture2DLoader;
4117
4374
  }(engineCore.Loader);
4118
- Texture2DLoader = _ts_decorate__default['default']([
4375
+ Texture2DLoader = __decorate([
4119
4376
  engineCore.resourceLoader(engineCore.AssetType.Texture2D, [
4120
4377
  "png",
4121
4378
  "jpg",
@@ -4125,7 +4382,7 @@ Texture2DLoader = _ts_decorate__default['default']([
4125
4382
  ], Texture2DLoader);
4126
4383
 
4127
4384
  var TextureCubeLoader = /*#__PURE__*/ function(Loader) {
4128
- _inherits__default['default'](TextureCubeLoader, Loader);
4385
+ _inherits(TextureCubeLoader, Loader);
4129
4386
  function TextureCubeLoader() {
4130
4387
  return Loader.apply(this, arguments);
4131
4388
  }
@@ -4134,7 +4391,7 @@ var TextureCubeLoader = /*#__PURE__*/ function(Loader) {
4134
4391
  var _this = this;
4135
4392
  return new engineCore.AssetPromise(function(resolve, reject) {
4136
4393
  Promise.all(item.urls.map(function(url) {
4137
- return _this.request(url, _extends__default['default']({}, item, {
4394
+ return _this.request(url, _extends({}, item, {
4138
4395
  type: "image"
4139
4396
  }));
4140
4397
  })).then(function(images) {
@@ -4157,14 +4414,14 @@ var TextureCubeLoader = /*#__PURE__*/ function(Loader) {
4157
4414
  };
4158
4415
  return TextureCubeLoader;
4159
4416
  }(engineCore.Loader);
4160
- TextureCubeLoader = _ts_decorate__default['default']([
4417
+ TextureCubeLoader = __decorate([
4161
4418
  engineCore.resourceLoader(engineCore.AssetType.TextureCube, [
4162
4419
  ""
4163
4420
  ])
4164
4421
  ], TextureCubeLoader);
4165
4422
 
4166
4423
  var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
4167
- _inherits__default['default'](AnimationClipLoader, Loader);
4424
+ _inherits(AnimationClipLoader, Loader);
4168
4425
  function AnimationClipLoader() {
4169
4426
  return Loader.apply(this, arguments);
4170
4427
  }
@@ -4172,7 +4429,7 @@ var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
4172
4429
  _proto.load = function load(item, resourceManager) {
4173
4430
  var _this = this;
4174
4431
  return new engineCore.AssetPromise(function(resolve, reject) {
4175
- _this.request(item.url, _extends__default['default']({}, item, {
4432
+ _this.request(item.url, _extends({}, item, {
4176
4433
  type: "arraybuffer"
4177
4434
  })).then(function(data) {
4178
4435
  return decode(data, resourceManager.engine).then(resolve);
@@ -4181,14 +4438,14 @@ var AnimationClipLoader = /*#__PURE__*/ function(Loader) {
4181
4438
  };
4182
4439
  return AnimationClipLoader;
4183
4440
  }(engineCore.Loader);
4184
- AnimationClipLoader = _ts_decorate__default['default']([
4441
+ AnimationClipLoader = __decorate([
4185
4442
  engineCore.resourceLoader(engineCore.AssetType.AnimationClip, [
4186
4443
  "ani"
4187
4444
  ])
4188
4445
  ], AnimationClipLoader);
4189
4446
 
4190
4447
  var SceneLoader = /*#__PURE__*/ function(Loader) {
4191
- _inherits__default['default'](SceneLoader, Loader);
4448
+ _inherits(SceneLoader, Loader);
4192
4449
  function SceneLoader() {
4193
4450
  return Loader.apply(this, arguments);
4194
4451
  }
@@ -4202,7 +4459,7 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
4202
4459
  }).then(function(data) {
4203
4460
  // @ts-ignore
4204
4461
  engine.resourceManager.initVirtualResources(data.files);
4205
- return SceneParser$1.parse(engine, data).then(function(scene) {
4462
+ return SceneParser.parse(engine, data).then(function(scene) {
4206
4463
  // parse ambient light
4207
4464
  var ambient = data.scene.ambient;
4208
4465
  var ambientLightPromise = Promise.resolve();
@@ -4275,14 +4532,14 @@ var SceneLoader = /*#__PURE__*/ function(Loader) {
4275
4532
  };
4276
4533
  return SceneLoader;
4277
4534
  }(engineCore.Loader);
4278
- SceneLoader = _ts_decorate__default['default']([
4535
+ SceneLoader = __decorate([
4279
4536
  engineCore.resourceLoader(engineCore.AssetType.Scene, [
4280
4537
  "prefab"
4281
4538
  ], true)
4282
4539
  ], SceneLoader);
4283
- ReflectionParser.registerCustomParseComponent("TextRenderer", /*#__PURE__*/ _async_to_generator__default['default'](function(instance, item, engine) {
4540
+ ReflectionParser.registerCustomParseComponent("TextRenderer", /*#__PURE__*/ _async_to_generator(function(instance, item, engine) {
4284
4541
  var props;
4285
- return _ts_generator__default['default'](this, function(_state) {
4542
+ return __generator(this, function(_state) {
4286
4543
  props = item.props;
4287
4544
  if (!props.font) {
4288
4545
  // @ts-ignore
@@ -4299,7 +4556,7 @@ exports.ComponentMap = ComponentMap;
4299
4556
  exports.GLTFResource = GLTFResource;
4300
4557
  exports.PrefabParser = PrefabParser;
4301
4558
  exports.ReflectionParser = ReflectionParser;
4302
- exports.SceneParser = SceneParser$1;
4559
+ exports.SceneParser = SceneParser;
4303
4560
  exports.decode = decode;
4304
4561
  exports.parseSingleKTX = parseSingleKTX;
4305
4562
  //# sourceMappingURL=main.js.map