@xviewer.js/debug 1.0.0-alpha.10 → 1.0.0-alpha.12

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
@@ -2236,12 +2236,35 @@ class GUI {
2236
2236
  }
2237
2237
  }
2238
2238
 
2239
- function _ts_decorate(decorators, target, key, desc) {
2240
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2241
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2242
- 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;
2243
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2239
+ /******************************************************************************
2240
+ Copyright (c) Microsoft Corporation.
2241
+
2242
+ Permission to use, copy, modify, and/or distribute this software for any
2243
+ purpose with or without fee is hereby granted.
2244
+
2245
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2246
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2247
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2248
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2249
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2250
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2251
+ PERFORMANCE OF THIS SOFTWARE.
2252
+ ***************************************************************************** */
2253
+ /* global Reflect, Promise, SuppressedError, Symbol */
2254
+
2255
+
2256
+ function __decorate(decorators, target, key, desc) {
2257
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2258
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2259
+ 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;
2260
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2244
2261
  }
2262
+
2263
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2264
+ var e = new Error(message);
2265
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2266
+ };
2267
+
2245
2268
  class InspectorPlugin extends core.Plugin {
2246
2269
  static _getTargetName(target) {
2247
2270
  return target.name || target.constructor.name || target.type;
@@ -2431,7 +2454,7 @@ class ViewerExtension extends core.ObjectInstance {
2431
2454
  this._renderer = viewer.renderer;
2432
2455
  }
2433
2456
  }
2434
- _ts_decorate([
2457
+ __decorate([
2435
2458
  core.property({
2436
2459
  value: {
2437
2460
  SRGBColorSpace: "srgb",
@@ -2441,7 +2464,7 @@ _ts_decorate([
2441
2464
  }
2442
2465
  })
2443
2466
  ], ViewerExtension.prototype, "outputColorSpace", null);
2444
- _ts_decorate([
2467
+ __decorate([
2445
2468
  core.property({
2446
2469
  value: {
2447
2470
  NoToneMapping: 0,
@@ -2452,17 +2475,17 @@ _ts_decorate([
2452
2475
  }
2453
2476
  })
2454
2477
  ], ViewerExtension.prototype, "toneMapping", null);
2455
- _ts_decorate([
2478
+ __decorate([
2456
2479
  core.property({
2457
2480
  min: 0,
2458
2481
  max: 10,
2459
2482
  step: 0.01
2460
2483
  })
2461
2484
  ], ViewerExtension.prototype, "toneMappingExposure", null);
2462
- _ts_decorate([
2485
+ __decorate([
2463
2486
  core.property
2464
2487
  ], ViewerExtension.prototype, "shadows", null);
2465
- _ts_decorate([
2488
+ __decorate([
2466
2489
  core.property({
2467
2490
  min: 0,
2468
2491
  max: 1,