www.spaceplanner.app

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

commit 6c4feaced331163f089b83a1b21d6b472297ff2f
parent 07c92f2b7121fbf8b6b60939f0df09ee4e89eb9f
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri, 11 Oct 2024 17:58:05 -0700

Use step of one in the furniture menu angle input

Angles are in degrees from 0-359 which is pleanty precise. The
database stores it as an integer too.

Diffstat:
Mfiles/floorplans/floorplan/main.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -951,7 +951,7 @@ function furnitureMenuX(editor, pointOrID) { menuItem("variety", "Variety", { enum: editor.furniture_types[params.type].varieties, attributes: { value: editor.varietyFrom(params) } }), menuItem("width", "Width", { attributes: { value: userLength(editor, params.width), required: true } }), menuItem("depth", "Depth", { attributes: { value: userLength(editor, params.depth), required: true } }), - menuItem("angle", "Angle", { attributes: { value: params.angle ?? 0, min: 0, max: 359, type: "number", required: true } }) + menuItem("angle", "Angle", { attributes: { value: params.angle ?? 0, min: 0, max: 359, step: 1, type: "number", required: true } }) ] let keys = {} for (let i in items) {