@xviewer.js/debug 1.0.0-alpha.28 → 1.0.0-alpha.30

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
@@ -1,4 +1,4 @@
1
- import { MeshBasicMaterial, MeshStandardMaterial, ShaderMaterial, Material } from 'three';
1
+ import { Material, MeshBasicMaterial, MeshStandardMaterial, ShaderMaterial } from 'three';
2
2
  import { property, Plugin, PropertyManager, Component, ObjectInstance } from '@xviewer.js/core';
3
3
 
4
4
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
@@ -2498,6 +2498,16 @@ __decorate([
2498
2498
  step: 0.01
2499
2499
  })
2500
2500
  ], ViewerExtension.prototype, "backgroundBlurriness", null);
2501
+ const materialProperties = {
2502
+ opacity: {
2503
+ min: 0,
2504
+ max: 1,
2505
+ step: 0.01
2506
+ }
2507
+ };
2508
+ for(let k in materialProperties){
2509
+ property(materialProperties[k])(Material.prototype, k);
2510
+ }
2501
2511
  const meshBasicMaterislProperties = {
2502
2512
  map: {
2503
2513
  dir: "diffuse"