fix: preserve single wall previews

Issue: #141
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-08-14 12:11:08 +00:00
committed by claude[bot]
parent 087f7cf381
commit 548677a99c
7 changed files with 17 additions and 9 deletions
+2
View File
@@ -969,6 +969,8 @@ test('split materialisation cuts a partial shared interval at the new divider',
});
test('drawWallPreviewD returns a path for open and closed outlines', () => {
const single = drawWallPreviewD([[0, 0], [10, 0]], 1, false);
assert.ok(single.includes('M'), 'one flat-capped segment remains a visible preview');
const open = drawWallPreviewD([[0, 0], [10, 0], [10, 6]], 1, false);
assert.ok(open.includes('M'));
assert.match(open, /11 -1(?:\D|$)/, 'open preview already contains the 90-degree mitre');