diff options
| author | Alon Levy <alon@pobox.com> | 2015-02-11 17:56:22 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-02-11 17:56:22 +0200 |
| commit | e6f64e9d55fef3fc351d935f78c7a478066576cb (patch) | |
| tree | 1672501ea9471f47f7cdf9cc3be57d55ec07fca9 /src/client/textanalysis.ui.js | |
| parent | 6d509d55ecdb94d4bc3ef755c4dccec9c262142b (diff) | |
client/textanalysis.ui: add helper for body location of SVG node
Diffstat (limited to 'src/client/textanalysis.ui.js')
| -rw-r--r-- | src/client/textanalysis.ui.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/textanalysis.ui.js b/src/client/textanalysis.ui.js index 91aea1de..90c771b8 100644 --- a/src/client/textanalysis.ui.js +++ b/src/client/textanalysis.ui.js @@ -10,6 +10,13 @@ var text = "", // Last text of sentence plus_button = $('#btn_add'), description = consts.description; +function get_svg__body_position(node_id) +{ + var item = document.getElementById(node_id), + matrix = item.getScreenCTM(); + return {x: matrix.e, y: matrix.f}; +} + var typeselection = function TypeSelectionDialog() { var e = $('.typeselection'), e_intro = e.find('#intro'), |
