commit a4ba4e8ee8c8c508228a48b153e4a1235f12f9de
parent 223ee24b507bb61b3c84a180bb1161732b16acee
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sun, 25 Aug 2024 14:25:25 -0700
Add movePoint method to editor
This should have been added in the last commit
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js
@@ -492,6 +492,10 @@ export class FloorplanEditor {
this.updateDisplay()
}
+ movePoint(point, coordinate) {
+ return this.backend.replacePoint(getId(point, "points"), coordinate)
+ }
+
removePoints(...points) {
for (let i in points) {
points[i] = backend.newRef("points", getId(points[i]))