commit 6ce551d96a8849c2724ce3dec5194257c03e2a85
parent 50afae322ff9e2a45f8a14115ff9f20d9ac2a219
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 4 Oct 2024 19:35:20 -0700
Fix interface for changing door swing
Before, the hinge was on the pointmap's points closest to the
pointer, now it's the opposite. This is intuitive because it's like
you're pulling the door open as you would by a handle.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -777,7 +777,7 @@ function precisePointMapHandler(event, editor, state) {
state.door = data
state.doorID = id
state.doorSwingFrom = cursor.clone()
- state.hinge = Math.round(editor.findObj(id).closestLinearInterpolation(cursor)) ? "b" : "a"
+ state.hinge = Math.round(editor.findObj(id).closestLinearInterpolation(cursor)) ? "a" : "b"
} else {
console.log("Hmm", event)
}