mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-05 22:29:05 +00:00
chore(monolith): raise bundleBytes for the r1 LED fixes (#780)
bundleBytes 2 667 879 → 2 670 566 (+2 687, over the 2 000 band): the value badge of a strip on the card and on the static card, the visibility gate before import(), the release of a card's LED caches on disconnect and the cache statistics of the lazy runtime/field chunks (r1 M1, M4, M5). The badge method moves below `_renderDevice`, outside the vacuum section the isometric contract reads. The review index is rebuilt after the rebase. Issue: #780 User-Visible: no
This commit is contained in:
+10
-10
@@ -11807,16 +11807,6 @@ export class HouseplanCard extends LitElement {
|
||||
${pucks}`;
|
||||
}
|
||||
|
||||
/** #780 r1 M1: the value badge of a strip, passive, at its anchor (`_pos`). */
|
||||
private _ledBadge(d: DevItem, view: { x: number; y: number; w: number; h: number }, iso?: IsoOverlayPlacement) {
|
||||
const presentation = this._devicePresentation(d, false);
|
||||
const face = presentation.haDisabled ? nothing : renderDeviceShadowFace(presentation);
|
||||
if (face === nothing) return nothing;
|
||||
const pos = this._pos(d), point = iso?.visualScene ?? [pos.x, pos.y];
|
||||
return html`<div class="dev led-badge ${deviceThemeClass(this._renderPlanHass)}" data-led-badge=${d.id} aria-hidden="true"
|
||||
style="left:${((point[0] - view.x) / view.w) * 100}%;top:${((point[1] - view.y) / view.h) * 100}%">${face}</div>`;
|
||||
}
|
||||
|
||||
private _renderDevice(
|
||||
d: DevItem,
|
||||
view: { x: number; y: number; w: number; h: number },
|
||||
@@ -11903,6 +11893,16 @@ export class HouseplanCard extends LitElement {
|
||||
</div>`;
|
||||
}
|
||||
|
||||
/** #780 r1 M1: the value badge of a strip, passive, at its anchor (`_pos`). */
|
||||
private _ledBadge(d: DevItem, view: { x: number; y: number; w: number; h: number }, iso?: IsoOverlayPlacement) {
|
||||
const presentation = this._devicePresentation(d, false);
|
||||
const face = presentation.haDisabled ? nothing : renderDeviceShadowFace(presentation);
|
||||
if (face === nothing) return nothing;
|
||||
const pos = this._pos(d), point = iso?.visualScene ?? [pos.x, pos.y];
|
||||
return html`<div class="dev led-badge ${deviceThemeClass(this._renderPlanHass)}" data-led-badge=${d.id} aria-hidden="true"
|
||||
style="left:${((point[0] - view.x) / view.w) * 100}%;top:${((point[1] - view.y) / view.h) * 100}%">${face}</div>`;
|
||||
}
|
||||
|
||||
/**
|
||||
* The dock says out loud that the moving robot is drawn nowhere (#162).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user