feat: Rearrange HippieClock class fields

This commit is contained in:
sthag 2026-03-21 10:51:10 +01:00
parent 88c7974d5c
commit 4f6af7e200

View file

@ -27,6 +27,8 @@ tags:
<script> <script>
class HippieClock { class HippieClock {
constructor(element, date = new Date(), options = {}) { constructor(element, date = new Date(), options = {}) {
this.element = element;
this.date = date;
this.defaults = { this.defaults = {
debug: true, debug: true,
size: Math.floor(this.getSize().value * 0.9), size: Math.floor(this.getSize().value * 0.9),
@ -35,8 +37,6 @@ tags:
overlay: false overlay: false
}; };
this.options = {...this.defaults, ...options}; this.options = {...this.defaults, ...options};
this.element = element;
this.date = date;
this.values = this.getTime(); this.values = this.getTime();
this.parts = []; this.parts = [];
this.shapes = []; this.shapes = [];