mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Don't make edited vertex targets larger
Render vertex and point change highlight with some opacity
This commit is contained in:
+2
-2
@@ -351,7 +351,7 @@ g.vertex.highlighted .shadow {
|
||||
.highlight-edited g.points g.node.vertex.added > circle.shadow,
|
||||
.highlight-edited g.points g.node.vertex.retagged > circle.shadow,
|
||||
.highlight-edited g.points g.node.vertex.moved > circle.shadow {
|
||||
fill-opacity: 1;
|
||||
fill-opacity: 0.8;
|
||||
}
|
||||
.highlight-edited g.points g.node.vertex.added > circle.shadow {
|
||||
fill: rgb(133, 255, 103);
|
||||
@@ -367,7 +367,7 @@ g.vertex.highlighted .shadow {
|
||||
.highlight-edited g.points g.node.point.added > path.shadow,
|
||||
.highlight-edited g.points g.node.point.retagged > path.shadow,
|
||||
.highlight-edited g.points g.node.point.moved > path.shadow {
|
||||
stroke-opacity: 1;
|
||||
stroke-opacity: 0.8;
|
||||
stroke-width: 10;
|
||||
}
|
||||
.highlight-edited g.points g.node.point.added > path.shadow {
|
||||
|
||||
@@ -242,15 +242,11 @@ export function svgVertices(projection, context) {
|
||||
targets.exit()
|
||||
.remove();
|
||||
|
||||
var threeFourths = function (num) {
|
||||
return (Math.round(3 * num) / 4).toFixed(2);
|
||||
};
|
||||
// enter/update
|
||||
targets.enter()
|
||||
.append('circle')
|
||||
.attr('r', function(d) {
|
||||
return isEditedEntity(d, base, graph) && threeFourths(_radii[d.id])
|
||||
|| _radii[d.id]
|
||||
return _radii[d.id]
|
||||
|| radiuses.shadow[3];
|
||||
})
|
||||
.merge(targets)
|
||||
|
||||
Reference in New Issue
Block a user