Extract floorplan placement and hit-testing helpers

This commit is contained in:
sudhir
2026-04-27 12:18:27 +05:30
parent a796c0fd0a
commit 3ae8d6d0fa
7 changed files with 930 additions and 753 deletions
@@ -360,7 +360,7 @@ const ModelRenderer = ({ node }: { node: ItemNode }) => {
point[1] === nextPolygon[index]?.[1],
))) &&
((nextBounds === null &&
(currentBounds === undefined || currentBounds === null || currentBounds === false)) ||
(currentBounds === undefined || currentBounds === null)) ||
(nextBounds !== null &&
Array.isArray(currentBounds?.min) &&
Array.isArray(currentBounds?.max) &&