diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-06-13 01:43:37 +0200 |
commit | 03322672782a6318b019eff33fe44ec800d6f12c (patch) | |
tree | 9d807e1585cf28a1ea98e87b855932dba00f1880 /src/elements/Stop.js | |
parent | 8e18b4698edd00f83af0be05bb3374f92fecaeb9 (diff) | |
download | svg.js-03322672782a6318b019eff33fe44ec800d6f12c.tar.gz svg.js-03322672782a6318b019eff33fe44ec800d6f12c.zip |
dependency updates, easier formatting
Diffstat (limited to 'src/elements/Stop.js')
-rw-r--r-- | src/elements/Stop.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/elements/Stop.js b/src/elements/Stop.js index d29090c..193256e 100644 --- a/src/elements/Stop.js +++ b/src/elements/Stop.js @@ -4,12 +4,12 @@ import SVGNumber from '../types/SVGNumber.js' import { registerMethods } from '../utils/methods.js' export default class Stop extends Element { - constructor (node, attrs = node) { + constructor(node, attrs = node) { super(nodeOrNew('stop', node), attrs) } // add color stops - update (o) { + update(o) { if (typeof o === 'number' || o instanceof SVGNumber) { o = { offset: arguments[0], |