mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Add another div to the tail (#829)
This commit is contained in:
+6
-5
@@ -1,6 +1,7 @@
|
||||
d3.tail = function() {
|
||||
var text = false,
|
||||
container,
|
||||
inner,
|
||||
xmargin = 25,
|
||||
tooltip_size = [0, 0],
|
||||
selection_size = [0, 0],
|
||||
@@ -13,11 +14,12 @@ d3.tail = function() {
|
||||
});
|
||||
|
||||
function setup() {
|
||||
|
||||
container = d3.select(document.body)
|
||||
.append('div')
|
||||
.style('display', 'none')
|
||||
.attr('class', 'tail tooltip-inner');
|
||||
.style('display', 'none')
|
||||
.attr('class', 'tail tooltip-inner');
|
||||
|
||||
inner = container.append('div');
|
||||
|
||||
selection
|
||||
.on('mousemove.tail', mousemove)
|
||||
@@ -28,7 +30,6 @@ d3.tail = function() {
|
||||
.on('mousemove.tail', mousemove);
|
||||
|
||||
selection_size = selection.size();
|
||||
|
||||
}
|
||||
|
||||
function show() {
|
||||
@@ -69,7 +70,7 @@ d3.tail = function() {
|
||||
return tail;
|
||||
}
|
||||
text = _;
|
||||
container.text(text);
|
||||
inner.text(text);
|
||||
tooltip_size = container.size();
|
||||
return tail;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user