We now have this in two places which is a bit poor, but I don't fancy
plumbing it into the ts machinery.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
pub const SELECT_SCALE: f64 = 1.1;
+// also in script.ts:redisplay_ancillaries ("halo")
+// nelem.setAttributeNS(null,'stroke-width','2px');
+pub const SELECT_STROKE_WIDTH: f64 = 2.0;
+
pub const DEFAULT_EDGE_WIDTH: f64 = 0.2;
pub const INVISIBLE_EDGE_SENSITIVE: f64 = 2.;
if (halo_colour != null) {
let nelem = ancillary_node(piece, halo_colour);
if (p.held != null) {
+ // value 2ps is also in src/pieces.rs SELECT_STROKE_WIDTH
nelem.setAttributeNS(null,'stroke-width','2px');
}
p.pelem.prepend(nelem);