www.spaceplanner.app

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

commit c22ffbb4a693b1e47c02302d21a0497fc5571140
parent ffa10a5a4815527290a1737288b6063e76766f89
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Tue, 15 Oct 2024 23:12:27 -0700

Put pointmap Length after Subdivide button in toolbar

This separates the informational display from the actual operations
you can perform a bit.

Diffstat:
Mfiles/floorplans/floorplan/main.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js @@ -335,9 +335,6 @@ function selectHandler(event, editor, state) { if (groups.pntmap && cnt === 1) { c.appendChild(document.createElement("li")) - .appendChild(document.createTextNode("Length: " + - userLength(editor, editor.pointmapLength(groups.pntmap[0])))) - c.appendChild(document.createElement("li")) .appendChild(ui.button("Subdivide", "Subdivide pointmap", null, { handlers: { click: function(ev) { @@ -360,6 +357,9 @@ function selectHandler(event, editor, state) { } } })) + c.appendChild(document.createElement("li")) + .appendChild(document.createTextNode("Length: " + + userLength(editor, editor.pointmapLength(groups.pntmap[0])))) let pm = editor.backend.reqObj(groups.pntmap[0]) if (pm.type === "door") {