Add an ellipse to resolve point ambiguity when dragging

(closes #3536)
This commit is contained in:
Bryan Housel
2017-04-26 02:08:54 -04:00
parent ba97dde0f2
commit 3d762b58f6
2 changed files with 16 additions and 0 deletions
+9
View File
@@ -49,6 +49,15 @@ g.point.active, g.point.active * {
pointer-events: none;
}
g.point ellipse.stroke {
display: none;
}
.mode-drag-node g.point.active ellipse.stroke {
display: block;
}
/* vertices and midpoints */
g.vertex .fill {
+7
View File
@@ -43,6 +43,13 @@ export function svgPoints(projection, context) {
enter.append('path')
.call(markerPath, 'shadow');
enter.append('ellipse')
.attr('cx', 0.5)
.attr('cy', 1)
.attr('rx', 6.5)
.attr('ry', 3)
.attr('class', 'stroke');
enter.append('path')
.call(markerPath, 'stroke');