www.spaceplanner.app

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

commit 8b8dbe38f6a00027f94f397d470882d4d983980c
parent 8b6d5ddf7966ff1b5ef95aee6b2454506f61a777
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu, 17 Oct 2024 14:54:39 -0700

Make points and pointmaps smaller

This should allow greater precision in the floorplans, yet I think
it's still not too small. It may be adjusted a bit in the future
(before people have made many floor plans).

This has probably caused a few issues, for example door swing by
pointer is now more difficult. The solution is to adapt all those
handlers to use the selection instead of checking .inside themselves
or whatever, because the selection selects even objects your not
directly over.

Diffstat:
Mfiles/floorplans/floorplan/editor.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -693,7 +693,7 @@ export class FloorplanEditor { .select() } else { editor.draw.findOne("#points") - .circle(750) + .circle(400) .cx(value.x).cy(value.y) .attr({ id }) .addClass("point") @@ -717,7 +717,7 @@ export class FloorplanEditor { } else { wall = editor.draw.findExactlyOne("#pointmaps") .line(a.x, a.y, b.x, b.y) - .stroke({ color: "black", width: 550 }) + .stroke({ color: "black", width: 350 }) .attr({ id }) .addClass(value.type) .data("type", value.type)