diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-01 16:59:51 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2018-11-01 16:59:51 +0100 |
commit | c40d7ffdfb95cb4db067463bb9259644aacbb876 (patch) | |
tree | e6f6c960c747dc90c2dea4b161f8a085894af67f /src/svg.js | |
parent | ac84c9be8051567cfcb28ccd7ea2652524bb8a6f (diff) | |
download | svg.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.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) { |