commit cc0fc8361bdca00e47b434cd8ea20936a2137e0b parent 215f475e31be0c8e9e571418fe7d05519ffb7bbc Author: Jacob R. Edwards <jacob@jacobedwards.org> Date: Sun, 25 Aug 2024 14:08:37 -0700 Return ref instead of element in Editor's addPoint That way we don't need to call updateDisplay(). Diffstat:
| M | files/floorplans/floorplan/editor.js | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -380,9 +380,7 @@ export class FloorplanEditor { return already } } - this.backend.addPoint(point) - this.updateDisplay() - return this.selectedPoint() + return this.backend.addPoint(point) } removePoint(point) {