aboutsummaryrefslogtreecommitdiffstats
path: root/src/svg.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-05 15:12:58 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-05 15:12:58 +0100
commit4049e2e6361d5ed9120f1edd02ef96ecc138fa6d (patch)
treeeeaee230519f755a6d8bd655e84fb08335da8bbd /src/svg.js
parentedc9454ddf9a0fc29a81713b98e15ddfded04bf4 (diff)
downloadsvg.js-4049e2e6361d5ed9120f1edd02ef96ecc138fa6d.tar.gz
svg.js-4049e2e6361d5ed9120f1edd02ef96ecc138fa6d.zip
rework of classes, make events on every object possible
Diffstat (limited to 'src/svg.js')
-rw-r--r--src/svg.js13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/svg.js b/src/svg.js
index 4206060..7cfbbc8 100644
--- a/src/svg.js
+++ b/src/svg.js
@@ -1,9 +1,3 @@
-// import {extend} from './tools.js'
-// import * as Element from './Element.js'
-// import Defs from './Defs.js'
-//
-// extend(Defs, [EventTarget, Element, Parent])
-
import {makeInstance} from './adopter.js'
import * as Classes from './classes.js'
import * as adopter from './adopter.js'
@@ -13,6 +7,7 @@ import * as elements from './elements.js'
import './attr.js'
import './arrange.js'
import './data.js'
+import './classHandling.js'
import find from './selector.js'
import './css.js'
import './transform.js'
@@ -24,7 +19,6 @@ const extend = tools.extend
import './EventTarget.js'
import './Element.js'
-import './Parent.js'
extend([
Classes.Doc,
@@ -59,8 +53,9 @@ extend([
], getMethodsFor('radius'))
extend(Classes.EventTarget, getMethodsFor('EventTarget'))
+extend(Classes.Dom, getMethodsFor('Dom'))
extend(Classes.Element, getMethodsFor('Element'))
-extend(Classes.Element, getMethodsFor('Parent'))
+extend(Classes.Shape, getMethodsFor('Shape'))
//extend(Classes.Element, getConstructor('Memory'))
extend(Classes.Container, getMethodsFor('Container'))
@@ -97,8 +92,6 @@ import * as ns from './namespaces.js'
SVG.get = SVG
SVG.find = find
Object.assign(SVG, ns)
-// import Base from './Base.js'
-// SVG.Element = SVG.Parent = SVG.Shape = SVG.Container = Base
import {easing} from './Controller.js'
SVG.easing = easing
import * as events from './event.js'