www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit 5307c57321d08ae4eba11267fd1999e7877ef54c
parent 2f3db1aae58a97c25485bf973fb1beb8fbc67d8e
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu,  3 Oct 2024 12:53:24 -0700

Fix door swing when moving points

Now pointmaps are updated identically to how they normally are when
points are moved.

Diffstat:
Mfiles/floorplans/floorplan/editor.js | 8+-------
1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -619,13 +619,7 @@ export class FloorplanEditor { } for (let oth in editor.backend.mappedPoints[id]) { let map = editor.backend.mappedPoints[id][oth] - oth = editor.backend.obj(oth) - map = editor.draw.findOneMax(byId(map)) - if (map) { - // It's probably being added later, that said, this isn't a good solution - // because it doesn't allow for checking for errors. - map.plot(oth.x, oth.y, value.x, value.y) - } + ops.add.pointmaps(map, editor.backend.obj(map)) } }, pointmaps: function(id, value) {