mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-26 12:01:45 +00:00
improved default values
This commit is contained in:
parent
e672e854c9
commit
8f28820452
@ -32,17 +32,18 @@
|
|||||||
|
|
||||||
//.System variables
|
//.System variables
|
||||||
const clock: Clock = {
|
const clock: Clock = {
|
||||||
body: 50,
|
body: 48,
|
||||||
hands: {
|
hands: {
|
||||||
minute: 45,
|
minute: 40,
|
||||||
hour: 25
|
hour: 25
|
||||||
},
|
},
|
||||||
time: {
|
time: {
|
||||||
minute: 0,
|
minute: 0,
|
||||||
hour: 0
|
hour: 0
|
||||||
},
|
},
|
||||||
speed: 4
|
speed: 0.4
|
||||||
};
|
};
|
||||||
|
// Constant system values
|
||||||
const TWO_PI = 2 * Math.PI;
|
const TWO_PI = 2 * Math.PI;
|
||||||
const HALF_PI = Math.PI / 2;
|
const HALF_PI = Math.PI / 2;
|
||||||
|
|
||||||
@ -93,7 +94,7 @@
|
|||||||
x1="50"
|
x1="50"
|
||||||
y1="50"
|
y1="50"
|
||||||
x2={clock.positions?.minute.x ?? 50}
|
x2={clock.positions?.minute.x ?? 50}
|
||||||
y2={clock.positions?.minute.y ?? 0}
|
y2={clock.positions?.minute.y ?? 50}
|
||||||
stroke-width="1"
|
stroke-width="1"
|
||||||
/>
|
/>
|
||||||
<!-- Clock hours hand -->
|
<!-- Clock hours hand -->
|
||||||
@ -102,7 +103,7 @@
|
|||||||
x1="50"
|
x1="50"
|
||||||
y1="50"
|
y1="50"
|
||||||
x2={clock.positions?.hour.x ?? 50}
|
x2={clock.positions?.hour.x ?? 50}
|
||||||
y2={clock.positions?.hour.y ?? 0}
|
y2={clock.positions?.hour.y ?? 50}
|
||||||
stroke-width="2"
|
stroke-width="2"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
|
Loading…
Reference in New Issue
Block a user