www.spaceplanner.app

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

commit 14bf4f780cd58e40e617e63a85de832f5f1b4da9
parent 2bf69c9ac7943e739cb89fef72ffa4e410082e1d
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Fri,  4 Oct 2024 09:27:23 -0700

Increase the size of points and pointmaps

This is to try and make it easier to press them on touch devices,
but it's still not always easy. May either have to scale with
viewport zoom which could be problematic or else have padding around
them so that when you're close, even if you're not on them, it will
register.

Diffstat:
Mfiles/floorplans/floorplan/editor.js | 4++--
Mfiles/floorplans/floorplan/svg.css | 4+---
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -610,7 +610,7 @@ export class FloorplanEditor { .select() } else { editor.draw.findOne("#points") - .circle(500) + .circle(750) .cx(value.x).cy(value.y) .attr({ id }) .addClass("point") @@ -637,7 +637,7 @@ export class FloorplanEditor { } else { wall = editor.draw.findExactlyOne("#pointmaps") .line(a.x, a.y, b.x, b.y) - .stroke({ color: "black", width: 400 }) + .stroke({ color: "black", width: 550 }) .attr({ id }) .addClass(value.type) .data("type", value.type) diff --git a/files/floorplans/floorplan/svg.css b/files/floorplans/floorplan/svg.css @@ -6,7 +6,6 @@ circle.selected { line { stroke: black; - stroke-width: 400; } line.selected { @@ -14,7 +13,7 @@ line.selected { } line.door { - stroke-width: 100; + stroke-width: 140; stroke-dasharray: 400 100; } @@ -23,6 +22,5 @@ line.door { } .point { - r: 250; fill: lightgrey; }