two-parents -> shared

It might have more than two parents.
This commit is contained in:
John Firebaugh
2012-12-21 16:28:31 -08:00
parent 5c6a45d22d
commit 883acd3e60
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ circle.handle {
cursor: url(../img/cursor-select-node.png), pointer;
}
circle.handle.two-parents {
circle.handle.shared {
fill:#aff;
}

View File

@@ -141,7 +141,7 @@ iD.Map = function() {
}
function drawHandles(waynodes, parentStructure, filter) {
function hasTwoParents(d) { return parentStructure[d.id] > 1; }
function shared(d) { return parentStructure[d.id] > 1; }
var handles = g.hit.selectAll('circle.handle')
.filter(filter)
@@ -160,7 +160,7 @@ iD.Map = function() {
')';
})
.classed('active', classActive)
.classed('two-parents', hasTwoParents)
.classed('shared', shared)
.classed('hover', classHover);
handles.transition().duration(50).attr('r', function(d) {