commit 2c3abb0b74ffe0c078e13a11d05273111ad44d76
parent 4dde496fd3fc70fa2a7bb19d8da5131801419c76
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 13 Sep 2024 10:37:32 -0700
Remove whitespace
Diffstat:
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/files/floorplans/floorplan/backend.js b/files/floorplans/floorplan/backend.js
@@ -105,7 +105,7 @@ class BackendHistory {
throw new Error("Remove requires oldValue")
}
}
-
+
let diff = {
type: "diff",
op: op,
diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js
@@ -720,7 +720,7 @@ export class FloorplanEditor {
for (let v in vars) {
if (params.width == vars[v].width && params.depth == vars[v].depth) {
return v
- }
+ }
}
return null
}
diff --git a/files/floorplans/floorplan/main.js b/files/floorplans/floorplan/main.js
@@ -540,7 +540,7 @@ function precisePointHandler(event, editor, state) {
if (state.lastUp != null && elapsed(state.lastUp) <= 500) {
state.to = state.from
state.from = null
-
+
// I want the first pointmap defined, but this for now
let m = editor.backend.mappedPoints[lib.getID(state.to)]
for (let point in m) {
@@ -600,7 +600,7 @@ function precisePointHandler(event, editor, state) {
console.warn("Bit of a state mismatch, not that big of a deal though")
commit()
return
- }
+ }
event.preventDefault()
}
@@ -738,15 +738,15 @@ function furnitureMenu(editor, pointOrID) {
params = {
x: p.x,
y: p.y,
- type,
+ type,
width: v.width ?? 9600,
depth: v.height ?? 9600,
name: null
-
+
}
id = editor.addMappedFurniture(params)
}
-
+
let items = [
menuItem("name", "Name"),
menuItem("type", "Type", { break: false, enum: editor.furniture_types, attributes: { value: params.type, required: true } }),
@@ -931,7 +931,7 @@ function parseUserLength(editor, length) {
if (amount) {
rebuilt.push({ unit: editor.unit, amount: amount })
}
-
+
return editor.units.combine(rebuilt)
}