diff --git a/ops/home/house3d-card.js b/ops/home/house3d-card.js index 14dce03..61a7b96 100644 --- a/ops/home/house3d-card.js +++ b/ops/home/house3d-card.js @@ -60,7 +60,7 @@ class House3dCard extends HTMLElement { .dot { width:8px; height:8px; border-radius:50%; background:#4a5560; transition:.25s; } .dot.on { background:#54d1ff; box-shadow:0 0 12px 2px rgba(84,209,255,.65); } .chip.pending .dot { background:#ffbe5a; } - .hint { position:absolute; left:18px; bottom:12px; font:400 12px/1.4 'Segoe UI',sans-serif; + .hint { position:absolute; left:18px; bottom:12px; z-index:3; font:400 12px/1.4 'Segoe UI',sans-serif; color:#5d7186; pointer-events:none; } .load { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#7f93a8; font:500 13px 'Segoe UI',sans-serif; } @@ -77,6 +77,7 @@ class House3dCard extends HTMLElement { this._dot = this._root.querySelector(".dot"); this._txt = this._root.querySelector(".txt"); this._chip = this._root.querySelector(".chip"); + if (!(this._config && this._config.entity) && this._chip) this._chip.style.display = "none"; this._roomNameEl = this._root.querySelector(".roomname"); this._night = false; this._nightBtn = this._root.querySelector(".nightbtn"); @@ -95,9 +96,9 @@ class House3dCard extends HTMLElement { this._setHour = (h) => { const day = h >= 6 && h <= 20; const k = day ? 1 : 0.15; - if (this._sun) this._sun.intensity = 2.0 * k; - if (this._amb) this._amb.intensity = 0.40 * (day ? 1 : 0.35); - if (this._hemi) this._hemi.intensity = 0.9 * (day ? 1 : 0.3); + if (this._sun) this._sun.intensity = 1.1 * k; + if (this._amb) this._amb.intensity = 0.22 * (day ? 1 : 0.35); + if (this._hemi) this._hemi.intensity = 0.45 * (day ? 1 : 0.3); const wrap = this._root.querySelector(".wrap"); if (wrap) wrap.classList.toggle("night", !day); if (this._model) { @@ -164,11 +165,11 @@ class House3dCard extends HTMLElement { this._renderer.toneMappingExposure = 1.05; this._wrap.appendChild(this._renderer.domElement); - this._amb = new T.AmbientLight(0xffffff, 0.40); + this._amb = new T.AmbientLight(0xffffff, 0.22); this._scene.add(this._amb); - this._hemi = new T.HemisphereLight(0xbcd6ee, 0x1a2028, 0.9); + this._hemi = new T.HemisphereLight(0xbcd6ee, 0x1a2028, 0.45); this._scene.add(this._hemi); - const dir = new T.DirectionalLight(0xfff4e2, 2.0); + const dir = new T.DirectionalLight(0xfff4e2, 1.1); this._sun = dir; dir.position.set(-24, 38, -18); this._scene.add(dir);