[Pkg-javascript-commits] [d3-tip.js] 56/277: show tip with evaluated text

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:16 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 2f81791f415397b0f1410614abba19d9153d2a78
Author: Justin Palmer <justin at github.com>
Date:   Fri Apr 5 10:38:50 2013 -0700

    show tip with evaluated text
---
 src/d3.tip.js | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index 23cf318..038881a 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -20,11 +20,13 @@ d3.svg.tip = function() {
   }
 
   tip.show = function(v) {
-
+    node.style.display = 'block'
+    text.apply(this, arguments)
   }
 
   tip.hide = function(v) {
-
+    node.style.display = 'none'
+    text.apply(this, arguments)
   }
 
   // Public: Proxy attr calls to the d3 tip container.  Sets or gets attribute value.
@@ -80,9 +82,9 @@ d3.svg.tip = function() {
   function init_node() {
     var node = document.createElement('div')
     node.style.position = 'absolute'
+    node.style.display = 'none'
     return node
   }
 
-
   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