Tweak line icon display

This commit is contained in:
Quincy Morgan
2019-02-14 10:06:50 -05:00
parent d63430e66a
commit d0c29f8554
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -210,6 +210,11 @@ path.line.stroke.tag-man_made-breakwater {
stroke-linecap: butt;
stroke-dasharray: 8, 2, 2, 2;
}
.preset-icon-line path.line.stroke.tag-barrier,
.preset-icon-line path.line.stroke.tag-man_made-groyne,
.preset-icon-line path.line.stroke.tag-man_made-breakwater {
stroke-dasharray: 1, 4, 6, 4;
}
/* bridges */
+3 -3
View File
@@ -64,7 +64,7 @@ export function uiPresetIcon() {
.remove();
// draw the line parametrically
var w = 60, h = 60, y = 43, l = 38, r = 3;
var w = 60, h = 60, y = 43, l = 36, r = 2.5;
var x1 = (w - l)/2, x2 = x1 + l;
var lineEnter = line.enter()
@@ -82,12 +82,12 @@ export function uiPresetIcon() {
.attr('class', 'line stroke');
lineEnter.append('circle')
.attr('class', 'vertex')
.attr('cx', x1)
.attr('cx', x1 - 1)
.attr('cy', y)
.attr('r', r);
lineEnter.append('circle')
.attr('class', 'vertex')
.attr('cx', x2)
.attr('cx', x2 + 1)
.attr('cy', y)
.attr('r', r);