feat: Rearrange HippieClock class fields
This commit is contained in:
parent
88c7974d5c
commit
4f6af7e200
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue