@xviewer.js/core 1.0.0-alpha.10 → 1.0.0-alpha.11

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/module.js CHANGED
@@ -1155,6 +1155,35 @@ class aTextureLoader extends aLoader {
1155
1155
  }
1156
1156
  }
1157
1157
 
1158
+ /******************************************************************************
1159
+ Copyright (c) Microsoft Corporation.
1160
+
1161
+ Permission to use, copy, modify, and/or distribute this software for any
1162
+ purpose with or without fee is hereby granted.
1163
+
1164
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1165
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1166
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1167
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1168
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1169
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1170
+ PERFORMANCE OF THIS SOFTWARE.
1171
+ ***************************************************************************** */
1172
+ /* global Reflect, Promise, SuppressedError, Symbol */
1173
+
1174
+
1175
+ function __decorate(decorators, target, key, desc) {
1176
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1177
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1178
+ 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;
1179
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
1180
+ }
1181
+
1182
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1183
+ var e = new Error(message);
1184
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1185
+ };
1186
+
1158
1187
  class PropertyManager {
1159
1188
  static _getProperties(target) {
1160
1189
  return this._propertiesMap.get(target.constructor);
@@ -1200,12 +1229,6 @@ function property(target, propertyKey) {
1200
1229
  }
1201
1230
  }
1202
1231
 
1203
- function _ts_decorate$3(decorators, target, key, desc) {
1204
- var c = arguments.length, r = c < 3 ? target : desc, d;
1205
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1206
- 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;
1207
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1208
- }
1209
1232
  const CinestationBlendStyle = {
1210
1233
  Linear: Easing.Linear.None,
1211
1234
  QuadraticIn: Easing.Quadratic.In,
@@ -1218,12 +1241,12 @@ class CinestationBlendDefinition {
1218
1241
  this.time = 4;
1219
1242
  }
1220
1243
  }
1221
- _ts_decorate$3([
1244
+ __decorate([
1222
1245
  property({
1223
1246
  value: CinestationBlendStyle
1224
1247
  })
1225
1248
  ], CinestationBlendDefinition.prototype, "style", void 0);
1226
- _ts_decorate$3([
1249
+ __decorate([
1227
1250
  property
1228
1251
  ], CinestationBlendDefinition.prototype, "time", void 0);
1229
1252
 
@@ -1287,12 +1310,6 @@ class Component extends ObjectInstance {
1287
1310
  }
1288
1311
  }
1289
1312
 
1290
- function _ts_decorate$2(decorators, target, key, desc) {
1291
- var c = arguments.length, r = c < 3 ? target : desc, d;
1292
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1293
- 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;
1294
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1295
- }
1296
1313
  const { clamp: clamp$1, lerp } = MathUtils;
1297
1314
  class CinestationBrain extends Component {
1298
1315
  get vcam() {
@@ -1365,16 +1382,10 @@ class CinestationBrain extends Component {
1365
1382
  this.onChanged = null;
1366
1383
  }
1367
1384
  }
1368
- _ts_decorate$2([
1385
+ __decorate([
1369
1386
  property
1370
1387
  ], CinestationBrain.prototype, "brainBlend", void 0);
1371
1388
 
1372
- function _ts_decorate$1(decorators, target, key, desc) {
1373
- var c = arguments.length, r = c < 3 ? target : desc, d;
1374
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1375
- 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;
1376
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1377
- }
1378
1389
  class VirtualCamera extends Component {
1379
1390
  get finalPosition() {
1380
1391
  return this._finalPosition.copy(this.node.position).add(this.correctPosition);
@@ -1416,17 +1427,17 @@ class VirtualCamera extends Component {
1416
1427
  this.trackedObjectOffset = new Vector3();
1417
1428
  }
1418
1429
  }
1419
- _ts_decorate$1([
1430
+ __decorate([
1420
1431
  property({
1421
1432
  dir: "lens"
1422
1433
  })
1423
1434
  ], VirtualCamera.prototype, "fov", void 0);
1424
- _ts_decorate$1([
1435
+ __decorate([
1425
1436
  property({
1426
1437
  dir: "lens"
1427
1438
  })
1428
1439
  ], VirtualCamera.prototype, "near", void 0);
1429
- _ts_decorate$1([
1440
+ __decorate([
1430
1441
  property({
1431
1442
  dir: "lens"
1432
1443
  })
@@ -1962,12 +1973,6 @@ function quarticDamp(current, target, dampTime, deltaTime) {
1962
1973
 
1963
1974
  const Vector3_ZERO = new Vector3();
1964
1975
 
1965
- function _ts_decorate(decorators, target, key, desc) {
1966
- var c = arguments.length, r = c < 3 ? target : desc, d;
1967
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1968
- 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;
1969
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1970
- }
1971
1976
  const { clamp, degToRad } = MathUtils;
1972
1977
  const { abs, tan } = Math;
1973
1978
  const VCamFreeLookMode = {
@@ -2231,37 +2236,37 @@ FreelookVirtualCamera.__xAxis = new Vector3();
2231
2236
  FreelookVirtualCamera.__yAxis = new Vector3();
2232
2237
  FreelookVirtualCamera.__quat = new Quaternion();
2233
2238
  FreelookVirtualCamera.__spherical = new Spherical();
2234
- _ts_decorate([
2239
+ __decorate([
2235
2240
  property({
2236
2241
  value: VCamFreeLookMode
2237
2242
  })
2238
2243
  ], FreelookVirtualCamera.prototype, "mode", void 0);
2239
- _ts_decorate([
2244
+ __decorate([
2240
2245
  property({
2241
2246
  dir: "set"
2242
2247
  })
2243
2248
  ], FreelookVirtualCamera.prototype, "forbidX", void 0);
2244
- _ts_decorate([
2249
+ __decorate([
2245
2250
  property({
2246
2251
  dir: "set"
2247
2252
  })
2248
2253
  ], FreelookVirtualCamera.prototype, "forbidY", void 0);
2249
- _ts_decorate([
2254
+ __decorate([
2250
2255
  property({
2251
2256
  dir: "set"
2252
2257
  })
2253
2258
  ], FreelookVirtualCamera.prototype, "forbidZ", void 0);
2254
- _ts_decorate([
2259
+ __decorate([
2255
2260
  property({
2256
2261
  dir: "set"
2257
2262
  })
2258
2263
  ], FreelookVirtualCamera.prototype, "forbidPanX", void 0);
2259
- _ts_decorate([
2264
+ __decorate([
2260
2265
  property({
2261
2266
  dir: "set"
2262
2267
  })
2263
2268
  ], FreelookVirtualCamera.prototype, "forbidPanY", void 0);
2264
- _ts_decorate([
2269
+ __decorate([
2265
2270
  property({
2266
2271
  dir: "set"
2267
2272
  })