Don't make edited vertex targets larger

Render vertex and point change highlight with some opacity
This commit is contained in:
Quincy Morgan
2019-10-10 18:58:39 +02:00
parent 18a2c6c320
commit 82acd82a29
2 changed files with 3 additions and 7 deletions
+2 -2
View File
@@ -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 {
+1 -5
View File
@@ -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)