mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
two-parents -> shared
It might have more than two parents.
This commit is contained in:
@@ -41,7 +41,7 @@ circle.handle {
|
||||
cursor: url(../img/cursor-select-node.png), pointer;
|
||||
}
|
||||
|
||||
circle.handle.two-parents {
|
||||
circle.handle.shared {
|
||||
fill:#aff;
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user