mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-30 11:49:16 +00:00
fix: prevent mixed-role walls during resize
Issue: #289 User-Visible: yes
This commit is contained in:
@@ -259,6 +259,18 @@ export const MUTANTS = [
|
||||
replace: ' if (!original || !next || !polyIsSimple(next)) return false;',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'safe-resize-side-ownership-bypassed',
|
||||
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
|
||||
+ '&& node --test --test-name-pattern="#289 side ownership" test/resize.test.mjs',
|
||||
because: 'extending or shortening a shared side wall must stop before one thickness record '
|
||||
+ 'describes both shared and outer material; the exact 43-step #289 fixture pins both directions',
|
||||
patches: [{
|
||||
file: 'src/resize.ts',
|
||||
find: ' if (!sideOwnershipPreserved(result, plan, eps)) return false;',
|
||||
replace: ' if (false && !sideOwnershipPreserved(result, plan, eps)) return false;',
|
||||
}],
|
||||
},
|
||||
{
|
||||
id: 'safe-resize-opening-jamb-bypassed',
|
||||
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
|
||||
|
||||
Reference in New Issue
Block a user