[Pkg-javascript-commits] [d3-tip.js] 31/277: Add minified version

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 5cc761fa173de5a5aa90ac13855e6607b36d8a70
Author: Justin Palmer <justin at labratrevenge.com>
Date:   Mon Jan 9 11:39:29 2012 -0800

    Add minified version
---
 README.md     | 2 +-
 d3.tip.min.js | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index b926730..b7e91b3 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
 ## Simple SVG Tooltips for d3.js
 
-Pure SVG tooltips for [d3.js](http://mbostock.github.com/d3/)
+Pure SVG tooltips for [d3.js](http://mbostock.github.com/d3/). ~3kb compressed, ~7k original.
 
 ![](http://dl.dropbox.com/u/602885/d3-tip-1.png)
 
diff --git a/d3.tip.min.js b/d3.tip.min.js
new file mode 100644
index 0000000..0a072df
--- /dev/null
+++ b/d3.tip.min.js
@@ -0,0 +1,4 @@
+// Public - contructs a new tooltip
+//
+// Returns a tip
+d3.svg.tip=function(){function h(h,i){this.ownerSVGElement.appendChild(g);var j=e.apply(this,arguments),l=f.apply(this,arguments),m=d3.select(g),n=this.tagName.toLowerCase(),o,p,q,r,s,t,u,v=d3.select(this.ownerSVGElement),w=d3.select(this),z=d3.select(k("rect")),A=this.ownerSVGElement.getBoundingClientRect(),B=this.getBBox();w.on("mouseout",function(){m.remove()}),m.text(" ").node().appendChild(z.node());var C=m.append("text").text(l).attr("text-anchor","middle").attr("alignment-baseline [...]
\ No newline at end of file

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