blob: 2cc1d099343ac34f427d7694a6eff9005ba80739 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import Shape from './Shape.js'
import * as circled from './circled.js'
import { extend, nodeOrNew } from './tools.js'
import { register } from './adopter.js'
import { registerMethods } from './methods.js'
export default class Ellipse extends Shape {
constructor (node) {
super(nodeOrNew('ellipse', node), Ellipse)
}
}
extend(Ellipse, circled)
registerMethods('Container', {
// Create an ellipse
ellipse: function (width, height) {
return this.put(new Ellipse()).size(width, height).move(0, 0)
}
})
register(Ellipse)
|