aboutsummaryrefslogtreecommitdiffstats
path: root/src/elements/Ellipse.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-06-13 01:43:37 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2023-06-13 01:43:37 +0200
commit03322672782a6318b019eff33fe44ec800d6f12c (patch)
tree9d807e1585cf28a1ea98e87b855932dba00f1880 /src/elements/Ellipse.js
parent8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff)
downloadsvg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz
svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip
dependency updates, easier formatting
Diffstat (limited to 'src/elements/Ellipse.js')
-rw-r--r--src/elements/Ellipse.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/elements/Ellipse.js b/src/elements/Ellipse.js
index 7f4e853..3f8b04b 100644
--- a/src/elements/Ellipse.js
+++ b/src/elements/Ellipse.js
@@ -11,16 +11,16 @@ import Shape from './Shape.js'
import * as circled from '../modules/core/circled.js'
export default class Ellipse extends Shape {
- constructor (node, attrs = node) {
+ constructor(node, attrs = node) {
super(nodeOrNew('ellipse', node), attrs)
}
- size (width, height) {
+ size(width, height) {
const p = proportionalSize(this, width, height)
- return this
- .rx(new SVGNumber(p.width).divide(2))
- .ry(new SVGNumber(p.height).divide(2))
+ return this.rx(new SVGNumber(p.width).divide(2)).ry(
+ new SVGNumber(p.height).divide(2)
+ )
}
}