summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-08 13:58:52 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-08 13:58:52 +0100
commitd3baefd3d4fac81ba27459197f289bff1a846046 (patch)
treeb6f27cf6bc073f81782cf1105cfb7ef987c22b47 /dist
parent15fd93ef07c1860fba7d7b285fe94dcb97c6f334 (diff)
downloadsvg.js-d3baefd3d4fac81ba27459197f289bff1a846046.tar.gz
svg.js-d3baefd3d4fac81ba27459197f289bff1a846046.zip
added `ax(), ay(), amove()` to change texts x and y values directly (#787)
Diffstat (limited to 'dist')
-rw-r--r--dist/svg.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/dist/svg.js b/dist/svg.js
index ba031c9..ff69c36 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@mick-wout.com>
* @license MIT
*
-* BUILT: Thu Nov 08 2018 13:49:37 GMT+0100 (GMT+01:00)
+* BUILT: Thu Nov 08 2018 13:57:26 GMT+0100 (GMT+01:00)
*/;
var SVG = (function () {
'use strict';
@@ -5208,6 +5208,17 @@ var SVG = (function () {
return a === 'leading' ? this.leading(v) : a === 'anchor' ? this.attr('text-anchor', v) : a === 'size' || a === 'family' || a === 'weight' || a === 'stretch' || a === 'variant' || a === 'style' ? this.attr('font-' + a, v) : this.attr(a, v);
}
+ });
+ registerMethods('Text', {
+ ax: function ax(x) {
+ return this.attr('x', x);
+ },
+ ay: function ay(y) {
+ return this.attr('y', y);
+ },
+ amove: function amove(x, y) {
+ return this.ax(x).ay(y);
+ }
}); // Add events to elements
var methods$1 = ['click', 'dblclick', 'mousedown', 'mouseup', 'mouseover', 'mouseout', 'mousemove', 'mouseenter', 'mouseleave', 'touchstart', 'touchmove', 'touchleave', 'touchend', 'touchcancel'].reduce(function (last, event) {