[Pkg-javascript-commits] [d3-tip.js] 131/277: implement se direction support

bhuvan krishna bhuvan-guest at moszumanska.debian.org
Thu Dec 8 06:57:23 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 6218234959df11ca13505af2194bc8529d3b244f
Author: Justin Palmer <justin at github.com>
Date:   Sun Apr 21 18:44:49 2013 -0700

    implement se direction support
---
 src/d3.tip.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/d3.tip.js b/src/d3.tip.js
index d3d20a1..3d2e041 100644
--- a/src/d3.tip.js
+++ b/src/d3.tip.js
@@ -129,7 +129,8 @@ d3.tip = function() {
     w:  direction_w,
     nw: direction_nw,
     ne: direction_ne,
-    sw: direction_sw
+    sw: direction_sw,
+    se: direction_se
   })
 
   function direction_n() {
@@ -188,6 +189,14 @@ d3.tip = function() {
     }
   }
 
+  function direction_se() {
+    var bbox = get_screen_bbox()
+    return {
+      top:  bbox.se.y,
+      left: bbox.e.x
+    }
+  }
+
   function init_node() {
     var node = document.createElement('div')
     node.style.position = 'absolute'

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