[Pkg-javascript-commits] [d3-tip.js] 30/277: update readme, add auto hiding

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:13 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 5c83a574fe732efa9081755b7f9fed3cbb08962f
Author: Justin Palmer <justin at labratrevenge.com>
Date:   Mon Jan 9 11:24:48 2012 -0800

    update readme, add auto hiding
---
 README.md     | 14 +++++++++++---
 src/d3.tip.js |  3 +++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index ab0c684..b926730 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,14 @@
-## Simple Tooltips for d3.js - **ALPHA STATE**
+## Simple SVG Tooltips for d3.js
 
 Pure SVG tooltips for [d3.js](http://mbostock.github.com/d3/)
 
+![](http://dl.dropbox.com/u/602885/d3-tip-1.png)
+
+* Familiar API - Modeled after the d3 API.
+* SVG - It's all svg, no hacks
+* Text only - Currently supports simple text values in tooltips 
+* Styleable - Use any svg styling support (dashed borders, etc).
+
 ### Usage
 ``` javascript
 // Setup
@@ -21,7 +28,8 @@ vis.selectAll('rect')
 ## TODO
 * ~~Left orientation~~
 * ~~Right orientation~~
-* Auto orientation
 * ~~Reorient when tip exceeds document bounds~~
+* ~~docs~~
+* Auto orientation
 * svg content in tip
-* docs
\ No newline at end of file
+* type - specify if tooltip is sticky.
diff --git a/src/d3.tip.js b/src/d3.tip.js
index d8ae81e..94d97dc 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -26,6 +26,9 @@ d3.svg.tip = function() {
         docRect    = this.ownerSVGElement.getBoundingClientRect(),
         targetRect = this.getBBox();
 
+    // TODO: Allow ability to specify this in someway
+    target.on('mouseout', function() { container.remove() })
+
     // FIXME: d3 has problems using `append` with nodes that were created
     // but not immediately added to the SVG dom.
     // Clear the container and add the rect backing

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