Browse Source

Make selector rect stroke width non-scaling

dev_h
Finn Krein 4 years ago
parent
commit
9e1bfffa80
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      client-data/tools/hand/hand.js

+ 2
- 1
client-data/tools/hand/hand.js View File

75
 	shape.width.baseVal.value = 0;
75
 	shape.width.baseVal.value = 0;
76
 	shape.height.baseVal.value = 0;
76
 	shape.height.baseVal.value = 0;
77
 	shape.setAttribute("stroke", "black");
77
 	shape.setAttribute("stroke", "black");
78
-	shape.setAttribute("stroke-width", 3);
78
+	shape.setAttribute("stroke-width", 1);
79
+	shape.setAttribute("vector-effect", "non-scaling-stroke");
79
 	shape.setAttribute("fill", "none");
80
 	shape.setAttribute("fill", "none");
80
 	shape.setAttribute("stroke-dasharray", "5 5");
81
 	shape.setAttribute("stroke-dasharray", "5 5");
81
 	shape.setAttribute("opacity", 1);
82
 	shape.setAttribute("opacity", 1);

Loading…
Cancel
Save