Skip to content

Commit

Permalink
publishes #40
Browse files Browse the repository at this point in the history
  • Loading branch information
1wheel committed Sep 15, 2017
1 parent 8b3be05 commit 2378edf
Show file tree
Hide file tree
Showing 4 changed files with 745 additions and 401 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
npm-debug.log
test.html
yarn.lock
package.lock
4 changes: 2 additions & 2 deletions build/d3-jetpack.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// https://github.com/gka/d3-jetpack#readme Version 2.0.7. Copyright 2017 Gregor Aisch.
// https://github.com/gka/d3-jetpack#readme Version 2.0.8. Copyright 2017 Gregor Aisch.
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-selection'), require('d3-transition'), require('d3-array'), require('d3-axis'), require('d3-scale'), require('d3-collection'), require('d3-queue'), require('d3-request')) :
typeof define === 'function' && define.amd ? define(['exports', 'd3-selection', 'd3-transition', 'd3-array', 'd3-axis', 'd3-scale', 'd3-collection', 'd3-queue', 'd3-request'], factory) :
Expand Down Expand Up @@ -333,7 +333,7 @@ var attachTooltip = function(sel, tooltipSel, fieldFns){
y = e.clientY,
bb = tooltipSel.node().getBoundingClientRect(),
left = clamp(20, (x-bb.width/2), window.innerWidth - bb.width - 20),
top = innerHeight - y - 20 > bb.height ? y + 20 : y - bb.height - 20;
top = innerHeight > y + 20 + bb.height ? y + 20 : y - bb.height - 20;

tooltipSel
.style('left', left +'px')
Expand Down
Loading

0 comments on commit 2378edf

Please sign in to comment.