@xviewer.js/debug 1.0.0-alpha.47 → 1.0.0-alpha.49

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
@@ -2456,8 +2456,15 @@ class ViewerExtension extends core.ObjectInstance {
2456
2456
  set backgroundBlurriness(v) {
2457
2457
  this._scene.backgroundBlurriness = v;
2458
2458
  }
2459
+ get targetFrameRate() {
2460
+ return this._viewer.targetFrameRate;
2461
+ }
2462
+ set targetFrameRate(v) {
2463
+ this._viewer.targetFrameRate = v;
2464
+ }
2459
2465
  constructor(viewer){
2460
2466
  super();
2467
+ this._viewer = viewer;
2461
2468
  this._scene = viewer.scene;
2462
2469
  this._renderer = viewer.renderer;
2463
2470
  }
@@ -2500,6 +2507,13 @@ __decorate([
2500
2507
  step: 0.01
2501
2508
  })
2502
2509
  ], ViewerExtension.prototype, "backgroundBlurriness", null);
2510
+ __decorate([
2511
+ core.property({
2512
+ min: 1,
2513
+ max: 120,
2514
+ step: 1
2515
+ })
2516
+ ], ViewerExtension.prototype, "targetFrameRate", null);
2503
2517
  const materialProperties = {
2504
2518
  visible: {},
2505
2519
  transparent: {},
@@ -2610,7 +2624,8 @@ const meshStandardMaterialProperties = {
2610
2624
  },
2611
2625
  normalScale: {
2612
2626
  dir: "normal",
2613
- parent: "normalMap"
2627
+ parent: "normalMap",
2628
+ step: 0.01
2614
2629
  },
2615
2630
  displacementScale: {
2616
2631
  dir: "displacement",
@@ -2646,6 +2661,116 @@ const meshStandardMaterialProperties = {
2646
2661
  for(let k in meshStandardMaterialProperties){
2647
2662
  core.property(meshStandardMaterialProperties[k])(three.MeshStandardMaterial.prototype, k);
2648
2663
  }
2664
+ const meshPhysicalMaterialProperties = {
2665
+ ior: {
2666
+ min: 0,
2667
+ max: 10,
2668
+ step: 0.01
2669
+ },
2670
+ anisotropy: {
2671
+ min: 0,
2672
+ max: 10,
2673
+ step: 0.01
2674
+ },
2675
+ clearcoat: {
2676
+ dir: "clearcoat"
2677
+ },
2678
+ clearcoatMap: {
2679
+ dir: "clearcoat",
2680
+ min: 0,
2681
+ max: 1,
2682
+ step: 0.01
2683
+ },
2684
+ clearcoatRoughness: {
2685
+ dir: "clearcoat",
2686
+ min: 0,
2687
+ max: 1,
2688
+ step: 0.01
2689
+ },
2690
+ clearcoatNormalScale: {
2691
+ dir: "clearcoat",
2692
+ step: 0.01
2693
+ },
2694
+ clearcoatNormalMap: {
2695
+ dir: "clearcoat"
2696
+ },
2697
+ iridescence: {
2698
+ dir: "iridescence",
2699
+ min: 0,
2700
+ max: 1,
2701
+ step: 0.01
2702
+ },
2703
+ iridescenceMap: {
2704
+ dir: "iridescence"
2705
+ },
2706
+ iridescenceIOR: {
2707
+ dir: "iridescence",
2708
+ step: 0.01
2709
+ },
2710
+ iridescenceThicknessRange: {
2711
+ dir: "iridescence"
2712
+ },
2713
+ iridescenceThicknessMap: {
2714
+ dir: "iridescence"
2715
+ },
2716
+ sheen: {
2717
+ dir: "sheen"
2718
+ },
2719
+ sheenColor: {
2720
+ dir: "sheen"
2721
+ },
2722
+ sheenColorMap: {
2723
+ dir: "sheen"
2724
+ },
2725
+ sheenRoughness: {
2726
+ dir: "sheen",
2727
+ min: 0,
2728
+ max: 1,
2729
+ step: 0.01
2730
+ },
2731
+ sheenRoughnessMap: {
2732
+ dir: "sheen"
2733
+ },
2734
+ transmission: {
2735
+ dir: "transmission"
2736
+ },
2737
+ transmissionMap: {
2738
+ dir: "transmission"
2739
+ },
2740
+ thickness: {
2741
+ dir: "thickness",
2742
+ min: 0,
2743
+ max: 1,
2744
+ step: 0.01
2745
+ },
2746
+ thicknessMap: {
2747
+ dir: "thickness"
2748
+ },
2749
+ attenuationDistance: {
2750
+ dir: "attenuation"
2751
+ },
2752
+ attenuationColor: {
2753
+ dir: "attenuation"
2754
+ },
2755
+ specularIntensity: {
2756
+ dir: "specular",
2757
+ min: 0,
2758
+ max: 1,
2759
+ step: 0.01
2760
+ },
2761
+ specularIntensityMap: {
2762
+ dir: "specular"
2763
+ },
2764
+ specularColor: {
2765
+ dir: "specular"
2766
+ },
2767
+ specularColorMap: {
2768
+ dir: "specular"
2769
+ }
2770
+ };
2771
+ for(let k in meshPhysicalMaterialProperties){
2772
+ core.property(meshPhysicalMaterialProperties[k])(three.MeshPhysicalMaterial.prototype, k);
2773
+ }
2649
2774
 
2650
2775
  /**
2651
2776
  * @author mrdoob / http://mrdoob.com/