diff options
Diffstat (limited to 'src/Ellipse.js')
-rw-r--r-- | src/Ellipse.js | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/Ellipse.js b/src/Ellipse.js index 2a6fc51..cb025bb 100644 --- a/src/Ellipse.js +++ b/src/Ellipse.js @@ -1,17 +1,18 @@ -import Parent from './Parent.js' +import Base from './Base.js' import * as circled from './circled.js' +import {extend} from './tools.js' -export default class Ellipse extends Shape { +export default class Ellipse extends Base { constructor (node) { - super(nodeOrNew('ellipse', node)) + super(nodeOrNew('ellipse', node), Ellipse) } } extend(Ellipse, circled) -addFactory(Container, { - // Create an ellipse - ellipse: function (width, height) { - return this.put(new Ellipse()).size(width, height).move(0, 0) - } -}) +// addFactory(Container, { +// // Create an ellipse +// ellipse: function (width, height) { +// return this.put(new Ellipse()).size(width, height).move(0, 0) +// } +// }) |