www.spaceplanner.app

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

commit 8377df76963c07363d3f1e0e901309d713fbcada
parent 3e105f8d840734c41447640b3a73159f9e85f33a
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 10 Sep 2024 14:42:44 -0700

Don't take width and depth in mapFurniture

This worked when furniture was created with addMappedFurniture, but
any other time it would be erronous.

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

diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js @@ -542,18 +542,9 @@ export class FloorplanBackend { } return x } - const validSize = function(input, cur) { - let x = validInt(input, cur) - if (x <= 0) { - throw new Error(input + " must be a positive number") - } - return x - } let parsers = { x: validInt, y: validInt, - width: validSize, - depth: validSize, angle: function(input, cur) { if (input == undefined) { return cur ?? 0