[Pkg-javascript-commits] [d3-tip.js] 75/277: rename to d3.tip
bhuvan krishna
bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:18 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 a74375ef6936972d59865d8862d8fb2caecb76ee
Author: Justin Palmer <justin at github.com>
Date: Sun Apr 7 15:25:11 2013 -0700
rename to d3.tip
---
examples/bars.html | 2 +-
examples/circles.html | 2 +-
src/d3.tip.js | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/bars.html b/examples/bars.html
index 1e4e7c9..edb459e 100644
--- a/examples/bars.html
+++ b/examples/bars.html
@@ -60,7 +60,7 @@
</div>
<script type="text/javascript">
- var tip = d3.svg.tip()
+ var tip = d3.tip()
.attr('class', 'd3-tip')
.text(function(d) { return d.total })
.direction(function(d) {
diff --git a/examples/circles.html b/examples/circles.html
index 559fb60..7028b36 100644
--- a/examples/circles.html
+++ b/examples/circles.html
@@ -57,7 +57,7 @@
random2 = d3.random.irwinHall(1)
for(var i = 0; i < 100; i++) data.push(random(i))
- var tip = d3.svg.tip()
+ var tip = d3.tip()
.attr('class', 'd3-tip')
.text(function(d) { return d.toFixed(2) })
.direction(function(d) {
diff --git a/src/d3.tip.js b/src/d3.tip.js
index e9db88c..0208e10 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -1,7 +1,7 @@
// Public - contructs a new tooltip
//
// Returns a tip
-d3.svg.tip = function() {
+d3.tip = function() {
var direction = d3_svg_direction,
offset = d3_svg_offset,
text = d3_svg_text,
@@ -22,8 +22,8 @@ d3.svg.tip = function() {
// Returns a tip
tip.show = function(v) {
var content = text.apply(this, arguments),
- dir = direction.apply(this, arguments),
- coords
+ dir = direction.apply(this, arguments),
+ coords
node.innerHTML = content
node.style.display = 'block'
--
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