mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 17:37:49 +02:00
Improve point rendering
This commit is contained in:
+16
-6
@@ -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
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user