aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-01 16:59:51 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-01 16:59:51 +0100
commitc40d7ffdfb95cb4db067463bb9259644aacbb876 (patch)
treee6f6c960c747dc90c2dea4b161f8a085894af67f /src/svg.js
parentac84c9be8051567cfcb28ccd7ea2652524bb8a6f (diff)
downloadsvg.js-c40d7ffdfb95cb4db067463bb9259644aacbb876.tar.gz
svg.js-c40d7ffdfb95cb4db067463bb9259644aacbb876.zip
fix a few mistakes. Make sugar work. Roll back to childNodes because children is 10x slower
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/svg.js b/src/svg.js
index a58c127..bc5dd3b 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -16,6 +16,7 @@ import './selector.js'
import './css.js'
import './transform.js'
import './memory.js'
+import './sugar.js'
import {getMethodsFor, getConstructor} from './methods.js'
const extend = tools.extend
@@ -48,6 +49,13 @@ extend([
Classes.Tspan
], getMethodsFor('Tspan'))
+extend([
+ Classes.Rect,
+ Classes.Ellipse,
+ Classes.Circle,
+ Classes.Gradient
+], getMethodsFor('radius'))
+
const containerMethods = getMethodsFor('Container')
// FIXME: We need a container array
for (let i in containers) {