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