summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-01-12 20:32:39 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2019-01-12 20:32:39 +0100
commit60792807eee29f1b748c9b12d308c477f7c1227d (patch)
tree27f5c46c02ea0acbec71668935ef72cf2749698e /src/modules
parentf5eff8745af43fcfcc2e837d89d549cb66220d99 (diff)
downloadsvg.js-60792807eee29f1b748c9b12d308c477f7c1227d.tar.gz
svg.js-60792807eee29f1b748c9b12d308c477f7c1227d.zip
Fix move and size of groups, removed setting of a default font so we dont act against user intention, fixed bug in `font()`
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/optional/sugar.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js
index c05512d..7aba0f7 100644
--- a/src/modules/optional/sugar.js
+++ b/src/modules/optional/sugar.js
@@ -136,6 +136,7 @@ registerMethods([ 'Element', 'Runner' ], {
font: function (a, v) {
if (typeof a === 'object') {
for (v in a) this.font(v, a[v])
+ return this
}
return a === 'leading'