fix: keep flipped openings on wall centerline

Issue: #250
User-Visible: yes
This commit is contained in:
Sergey Matyunin
2026-08-23 01:59:26 +03:00
parent 2534916c94
commit 0eb9ffe480
24 changed files with 341 additions and 334 deletions
+2 -3
View File
@@ -70,9 +70,8 @@ export function renderOpeningVisibleGeometry(spec: OpeningVisibleSpec): Template
// second scaleY(-1).
const renderSy = spec.type === 'gate' ? 1 : sy;
// Default symbols sit on the wall centreline. A saved door/window flip keeps
// the explicit edge-aligned compatibility mode, but gate leaves always stay
// centred and use face.side only for their 10 degree turn.
// Every symbol sits on the wall centreline. flip_v changes only leaf/swing
// direction; gates use face.side for their 10 degree turn (#250).
const visualOffset = openingSymbolOffset(
spec.type, spec.flipV, spec.angle, spec.face,
);