From d95255ada269a5ebfa640bc48b52d007f5e66f91 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 6 Sep 2026 15:01:53 +0300 Subject: [PATCH] =?UTF-8?q?test:=20=D1=81=D0=B2=D0=B8=D0=B4=D0=B5=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D0=B8=20#473=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=20?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5=D0=BD=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20plate=E2=86=92footprint=20(#471)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: #473 User-Visible: no --- test/iso-scene-render.test.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/iso-scene-render.test.mjs b/test/iso-scene-render.test.mjs index db1c89ba..8c31facb 100644 --- a/test/iso-scene-render.test.mjs +++ b/test/iso-scene-render.test.mjs @@ -720,7 +720,7 @@ const perfFixture = () => { id: 'floor', title: 'Floor', cellCm: 5, vb: [0, 0, 100, 100], bg: null, rooms: [owner], wall_segments: [], room_drafts: [], partitions: [], wall_columns: [], }; - const wallSilhouettes = [{ outer: buildIsoPlatePolygon([0, 50], [4, 60], ISO_WALL_HEIGHT) }]; + const wallSilhouettes = [{ outer: buildIsoFootprintPolygon([0, 50], [4, 60], ISO_WALL_HEIGHT) }]; const input = { space, devices: [{ id: 'device', space: 'floor', marker: { room_id: 'owner' } }], @@ -808,10 +808,10 @@ test('#473 W4: AABB-отсечение учитывает зазор безоп // до точного теста, и плита легла бы вплотную к стене. // Стена — компактный силуэт: у длинной стены AABB в изометрии накрывает плиту // при любом сдвиге вдоль оси, и отсечение не участвует в решении. - const wall = { outer: buildIsoPlatePolygon([0, 50], [2, 2], ISO_WALL_HEIGHT) }; + const wall = { outer: buildIsoFootprintPolygon([0, 50], [2, 2], ISO_WALL_HEIGHT) }; const owner = { id: 'owner', outer: [[0, 0], [100, 0], [100, 100], [0, 100]], holes: [], safePoint: [50, 50] }; const placeAt = (x, safetyGapCssPx) => resolveIsoOverlayPlacement({ - kind: 'device', floorAnchor: [x, 50], plateHalfSize: [2, 2], + kind: 'device', floorAnchor: [x, 50], footprintHalfSize: [2, 2], rooms: [owner], roomsValidated: true, preferredRoomId: 'owner', ownerAlreadyResolved: true, resolvedOwner: { room: owner, safePoint: [50, 50] }, showBorders: true, wallSilhouettes: [wall], wallGeometryValidated: true,