[Pkg-javascript-commits] [d3-tip.js] 185/277: Use pointer-events instead of pointerEvents
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 3cb1aa420b370ae58946090dfe5319f20230f03e
Author: Alan Balasundaram <balasuar at gmail.com>
Date: Sat Sep 28 21:58:38 2013 -0700
Use pointer-events instead of pointerEvents
---
d3.tip.min.js | 2 +-
src/d3.tip.js | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/d3.tip.min.js b/d3.tip.min.js
index 3f5819e..6ce9f52 100644
--- a/d3.tip.min.js
+++ b/d3.tip.min.js
@@ -1 +1 @@
-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
+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 773a45f..19cc203 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -49,10 +49,8 @@ d3.tip = function() {
tip.hide = function() {
nodel = d3.select(node)
nodel.style({
- top: '-1000px',
- left: '-1000px',
opacity: 0,
- pointerEvents: 'none' })
+ 'pointer-events': '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