summaryrefslogtreecommitdiffstats
path: root/src/Gradient.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gradient.js')
-rw-r--r--src/Gradient.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Gradient.js b/src/Gradient.js
index e6aa362..0f20173 100644
--- a/src/Gradient.js
+++ b/src/Gradient.js
@@ -1,12 +1,13 @@
import Stop from './Stop.js'
-import Base from './Base.js'
+import Container from './Container.js'
import * as gradiented from './gradiented.js'
import {nodeOrNew, extend} from './tools.js'
-import attr from './attr.js'
+//import attr from './attr.js'
import {register} from './adopter.js'
import {registerMethods} from './methods.js'
+import Box from './Box.js'
-export default class Gradient extends Base {
+export default class Gradient extends Container {
constructor (type) {
super(
nodeOrNew(type + 'Gradient', typeof type === 'string' ? null : type),
@@ -45,12 +46,17 @@ export default class Gradient extends Base {
// custom attr to handle transform
attr (a, b, c) {
if (a === 'transform') a = 'gradientTransform'
- return attr.call(this, a, b, c)
+ return super.attr(a, b, c)
+ //return attr.call(this, a, b, c)
}
targets () {
return find('svg [fill*="' + this.id() + '"]')
}
+
+ bbox () {
+ return new Box()
+ }
}
extend(Gradient, gradiented)