[Pkg-javascript-commits] [d3-tip.js] 40/277: apply tips

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:14 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 ddee59a53fd71ab40d9b2934b7bef3ccb34519b2
Author: Caged <justin at labratrevenge.com>
Date:   Tue Feb 7 15:09:53 2012 -0800

    apply tips
---
 examples/nested-groups.html | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/examples/nested-groups.html b/examples/nested-groups.html
index ba9c543..77fb10f 100644
--- a/examples/nested-groups.html
+++ b/examples/nested-groups.html
@@ -123,7 +123,8 @@
 
       dots.append('circle')
         .attr('r', 4)
-        .on('mouseover', function(d) {
+        .on('mouseover', function(d, i) {
+          tip.apply(this, arguments)
           var rect = this.getBoundingClientRect(),
               bbox = this.getBBox(),
               // trans = this.getTransformToElement(),
@@ -132,7 +133,6 @@
               x = ctm.e,
               y = ctm.f;
 
-          console.log(rect, bbox, scree, ctm)
           linex.transition()
             .attr('x1', x)
             .attr('x2', x)
@@ -194,6 +194,7 @@
         .attr('y', function(d) { return y(d) })
         .on('mouseover', function(d) {
           d3.select(this).style('fill', 'red')
+          tip.apply(this, arguments)
           var rect = this.getBoundingClientRect(),
               bbox = this.getBBox(),
               // trans = this.getTransformToElement(),
@@ -210,9 +211,6 @@
             .attr('y1', y)
             .attr('y2',y)
         })
-        .on('mouseout', function(d) {
-          d3.select(this).style('fill', '#2892eb')
-        })
 
       vis.append('g')
         .attr('class', 'x axis')

-- 
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