mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
@@ -1518,6 +1518,21 @@ const MUTANT_DEFINITIONS = [
|
||||
+ 'this._cameraTransition.target?.viewBox || view, disp))',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'room-fit-persists-zoom',
|
||||
guard: 'node demo/smoke_room_fit.mjs',
|
||||
because: 'room focus is session-only and must not leak its zoom into LS_ZOOM on '
|
||||
+ 'completion or cancellation (#152 AC15)',
|
||||
patches: [{
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: " if (state.reason !== 'room') this._saveZoom();",
|
||||
replace: ' this._saveZoom();',
|
||||
}, {
|
||||
file: 'src/houseplan-card.ts',
|
||||
find: " if (presentedZoom !== undefined && reason !== 'room') this._saveZoom();",
|
||||
replace: ' if (presentedZoom !== undefined) this._saveZoom();',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'camera-anchor-from-presented',
|
||||
guard: 'node demo/smoke_smooth_zoom.mjs',
|
||||
|
||||
Reference in New Issue
Block a user