Fix tooltip positioning

This commit is contained in:
Tom MacWright
2016-08-24 09:42:14 -04:00
parent 29f2c20e35
commit e0f3d562c7
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import { functor } from './index';
import * as d3 from 'd3';
import 'd3-selection-multi';
export function tooltip() {
var tooltip = function(selection) {
@@ -122,7 +123,7 @@ export function tooltip() {
break;
}
tip.style(pos ?
tip.styles(pos ?
{left: ~~pos.x + 'px', top: ~~pos.y + 'px'} :
{left: null, top: null});
+3 -2
View File
@@ -24,14 +24,15 @@
],
"license": "ISC",
"dependencies": {
"d3-selection-multi": "1.0.0",
"diacritics": "1.2.3",
"lodash": "4.13.1",
"marked": "0.3.6",
"osm-auth": "0.2.9",
"rbush": "2.0.1",
"sexagesimal": "0.5.0",
"wmf-sitematrix": "0.1.2",
"togeojson": "0.14.2"
"togeojson": "0.14.2",
"wmf-sitematrix": "0.1.2"
},
"devDependencies": {
"chai": "~3.5.0",