www.spaceplanner.app

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

commit 7eacb6e44a2db713f32171429e90eb4606b7a812
parent 040c83b2fa78af8347aa25c3611ef5bfe1d84998
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu, 17 Oct 2024 15:40:44 -0700

Disable removal of orphans

Explained in the comment but basically not sure it's a good system,
and even if it was I would need to store the origin point on the
server.

Diffstat:
Mfiles/floorplans/floorplan/backend.js | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js @@ -912,6 +912,17 @@ export class FloorplanBackend { } removeOrphans() { + // The issue is that the origin point isn't stored + // on the server, so it's kind of randomized each time + // you fetch the data anew. Furthermore it means you're + // kind of stuck with the origin point even if you end + // up wanting to make a new place you're origin for + // whatever reason. + // This will probably just be removed at some point + // but I'm not entirely sure yet. + console.error("removeOrphans is currently disabled") + return + let origin = this.originPoint() if (origin == undefined) { return