feat: smooth vacuum trails (#209)

Issue: #209
User-Visible: yes
This commit is contained in:
Matysh
2026-08-28 23:16:58 +03:00
parent 2890b9a1ab
commit 9d2ef12c96
43 changed files with 578 additions and 268 deletions
+12
View File
@@ -2441,6 +2441,18 @@ const MUTANT_DEFINITIONS = [
replace: ' resumed = False',
}],
},
{
id: 'vacuum-trail-smoothing-disabled',
guard: 'npx tsc -p tsconfig.test.json && node scripts/fix-test-build.mjs '
+ '&& node --test --test-name-pattern="smoothVacPath rounds corners" test/vacuum.test.mjs',
because: 'the bounded curve is the user-visible point of #209; restoring a straight vertex '
+ 'must be rejected by the focused geometry test rather than blessed by a matching empty golden',
patches: [{
file: 'src/vacuum.ts',
find: " commands.push({ kind: 'quadratic', control: b, point: after });",
replace: " commands.push({ kind: 'line', point: b });",
}],
},
{
id: 'device-unavailable-hover-restored',
guard: 'node demo/smoke_device_icon_design.mjs',