Improve point rendering

This commit is contained in:
John Firebaugh
2013-01-23 18:18:58 -05:00
parent 5eabb931ff
commit 2b799ddd7b
2 changed files with 20 additions and 10 deletions
+16 -6
View File
@@ -3,16 +3,26 @@ path {
fill: none;
}
/* points */
g.point circle {
fill:#fff;
}
g.pointer circle.stroke,
g.point.selected circle.stroke {
fill:#333;
-webkit-transform:scale(1.2, 1.2);
-moz-transform:scale(1.2, 1.2);
transform:scale(1.2, 1.2);
g.point .shadow {
fill: none;
pointer-events: all;
-webkit-transition: -webkit-transform 100ms linear;
transition: transform 100ms linear;
-moz-transition: fill 100ms linear;
}
g.point.hover .shadow {
fill: #E96666;
fill-opacity: 0.3;
}
g.point.selected .shadow {
fill: #E96666;
fill-opacity: 0.7;
}
/* vertices */
+4 -4
View File
@@ -33,12 +33,12 @@ iD.svg.Points = function(projection) {
.attr('class', 'node point');
group.append('circle')
.attr('class', 'stroke')
.attr({ r: 10 });
.attr('r', 13)
.attr('class', 'shadow');
group.append('circle')
.attr('class', 'fill')
.attr({ r: 10 });
.attr('class', 'stroke')
.attr('r', 9);
group.append('image')
.attr({ width: 16, height: 16 })