@xviewer.js/debug 1.0.0-alpha.57 → 1.0.0-alpha.59

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
@@ -863,8 +863,7 @@ class ColorController extends Controller {
863
863
  this.setValue(newValue);
864
864
  } else {
865
865
  this._format.fromHexString(value, this.getValue(), this._rgbScale);
866
- this._callOnChange();
867
- this.updateDisplay();
866
+ this.setValue(this.getValue());
868
867
  }
869
868
  }
870
869
  save() {
@@ -2456,6 +2455,18 @@ class ViewerExtension extends core.ObjectInstance {
2456
2455
  set backgroundBlurriness(v) {
2457
2456
  this._scene.backgroundBlurriness = v;
2458
2457
  }
2458
+ get environmentRotation() {
2459
+ return this._scene.environmentRotation;
2460
+ }
2461
+ set environmentRotation(v) {
2462
+ this._scene.environmentRotation.copy(v);
2463
+ }
2464
+ get backgroundRotation() {
2465
+ return this._scene.backgroundRotation;
2466
+ }
2467
+ set backgroundRotation(v) {
2468
+ this._scene.backgroundRotation.copy(v);
2469
+ }
2459
2470
  get targetFrameRate() {
2460
2471
  return this._viewer.targetFrameRate;
2461
2472
  }
@@ -2507,6 +2518,16 @@ __decorate([
2507
2518
  step: 0.01
2508
2519
  })
2509
2520
  ], ViewerExtension.prototype, "backgroundBlurriness", null);
2521
+ __decorate([
2522
+ core.property({
2523
+ step: 0.01
2524
+ })
2525
+ ], ViewerExtension.prototype, "environmentRotation", null);
2526
+ __decorate([
2527
+ core.property({
2528
+ step: 0.01
2529
+ })
2530
+ ], ViewerExtension.prototype, "backgroundRotation", null);
2510
2531
  __decorate([
2511
2532
  core.property({
2512
2533
  min: 1,