[Pkg-javascript-commits] [d3-tip.js] 184/277: When hiding tool tips, move them out of the frame, to prevent them tofrom eating mouse over events

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:29 UTC 2016


This is an automated email from the git hooks/post-receive script.

bhuvan-guest pushed a commit to branch master
in repository d3-tip.js.

commit 1c068b3b4186888acfae7753b5b492d779f9c43e
Author: Alan Balasundaram <balasuar at gmail.com>
Date:   Sat Sep 28 21:49:31 2013 -0700

    When hiding tool tips, move them out of the frame, to prevent them tofrom eating mouse over events
---
 d3.tip.min.js | 2 +-
 src/d3.tip.js | 7 +++++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/d3.tip.min.js b/d3.tip.min.js
index 7277057..3f5819e 100644
--- a/d3.tip.min.js
+++ b/d3.tip.min.js
@@ -1 +1 @@
-d3.tip=function(){function t(t){v=m(t),w=v.createSVGPoint(),document.body.appendChild(x)}function e(){return"n"}function n(){return[0,0]}function r(){return" "}function o(){var t=p();return{top:t.n.y-x.offsetHeight,left:t.n.x-x.offsetWidth/2}}function s(){var t=p();return{top:t.s.y,left:t.s.x-x.offsetWidth/2}}function l(){var t=p();return{top:t.e.y-x.offsetHeight/2,left:t.e.x}}function u(){var t=p();return{top:t.w.y-x.offsetHeight/2,left:t.w.x-x.offsetWidth}}function f(){var t=p();return [...]
\ No newline at end of file
+d3.tip=function(){var direction=d3_tip_direction,offset=d3_tip_offset,html=d3_tip_html,node=initNode(),svg=null,point=null;function tip(vis){svg=getSVGNode(vis);point=svg.createSVGPoint();document.body.appendChild(node)}tip.show=function(){var content=html.apply(this,arguments),poffset=offset.apply(this,arguments),dir=direction.apply(this,arguments),nodel=d3.select(node),i=0,coords;nodel.html(content).style({opacity:1,pointerEvents:"all"});while(i--)nodel.classed(directions[i],false);coo [...]
\ No newline at end of file
diff --git a/src/d3.tip.js b/src/d3.tip.js
index b4ebbcf..773a45f 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -48,8 +48,11 @@ d3.tip = function() {
   // Returns a tip
   tip.hide = function() {
     nodel = d3.select(node)
-    nodel.style({ opacity: 0, pointerEvents: 'none' })
-
+    nodel.style({ 
+      top: '-1000px',
+      left: '-1000px',
+      opacity: 0, 
+      pointerEvents: 'none' })
     return tip
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/d3-tip.js.git



More information about the Pkg-javascript-commits mailing list