From 96fa07a61b5030f121e920b45bf1567e01b29913 Mon Sep 17 00:00:00 2001 From: Roman Buryan Date: Mon, 2 Nov 2026 09:55:43 +0300 Subject: [PATCH] =?UTF-8?q?[HOME]=203D-=D0=BA=D0=B0=D1=80=D1=82=D0=B0:=20?= =?UTF-8?q?=D0=BC=D1=8F=D0=B3=D1=87=D0=B5=20=D1=81=D0=B2=D0=B5=D1=82=20(?= =?UTF-8?q?=D0=BD=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D1=81=D0=B2=D0=B5=D1=82?= =?UTF-8?q?),=20=D1=87=D0=B8=D0=BF=20=D1=81=D0=BA=D1=80=D1=8B=D1=82=20?= =?UTF-8?q?=D0=B1=D0=B5=D0=B7=20=D1=81=D1=83=D1=89=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8,=20=D0=BF=D0=BE=D0=B4=D1=81=D0=BA=D0=B0=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D0=B2=D0=B5=D1=80=D1=85=20canvas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ops/home/house3d-card.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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);