fix: закрыть compositor-пути day-cycle (#582)

Issue: #582
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-15 13:41:51 +03:00
parent a0a108cf13
commit 54dc836dee
54 changed files with 581 additions and 432 deletions
+5 -2
View File
@@ -14,11 +14,12 @@ test('#582 camera movement switches the day-cycle shadow to a stage-bounded scen
assert.match(helper, /pointer-events="none"/);
assert.match(card, /dayCycle && paperShapes\.length \? svg`<svg class="hp-paper-outline-svg"/);
assert.match(card, /data-hp-live-viewbox=\$\{iso \? 'camera' : 'floor'\}/);
assert.doesNotMatch(staticRender, /class="hp-paper-outline-svg"/);
assert.match(card, /renderPaperShapes\(paperShapes\)/);
assert.match(staticRender, /renderPaperShapes\(paperShapes\)/);
assert.match(staticRender, /dayCycle && paperShapes\.length \? svg`<svg class="hp-paper-outline-svg"/);
assert.match(card, /private _activateSafeDayCycleOutline\(\)/);
assert.match(card, /hp-safe-daycycle-outline/);
assert.match(card, /private _startCameraTransition\([\s\S]*?this\._activateSafeDayCycleOutline\(\);[\s\S]*?this\._cameraTransition\.start/);
assert.match(styles, /\.stage\.daycycle \.hp-paperg/);
assert.match(styles, /\.stage\.daycycle\.hp-safe-daycycle-outline \.hp-paper-outline-svg/);
assert.match(styles, /\.stage\.daycycle\.hp-safe-daycycle-outline \.hp-paperg \{[\s\S]*?filter:\s*none;[\s\S]*?will-change:\s*auto;/);
@@ -33,5 +34,7 @@ test('#582 safe camera scene uses explicit bounded plan and outline layers', ()
assert.match(styles, /\.plan-svg \{ z-index: 1; \}/);
assert.match(styles, /\.hp-paper-outline-svg \{[\s\S]*?z-index: 0;/);
assert.match(styles, /\.stage\.daycycle\.hp-safe-daycycle-outline \.plan-svg \{[\s\S]*?will-change:\s*transform;/);
assert.doesNotMatch(staticCard, /\.hp-static-stage \.hp-paper-outline-svg/);
assert.match(staticCard, /\.hp-static-stage > \.hp-paper-outline-svg \{[\s\S]*?z-index:\s*0;/);
assert.match(styles, /\.hp-static-stage\.daycycle \.hp-paper-outline-svg/);
assert.match(styles, /\.hp-static-stage\.daycycle \.hp-paperg \{[\s\S]*?filter:\s*none;[\s\S]*?will-change:\s*auto;/);
});