- {{ pad(hours) }}:{{ pad(props.date.getMinutes()) }}:{{ pad(props.date.getSeconds()) }} {{ props.ampm ? ampm : '' }}
+ {{ pad(hours) }}:{{ pad(props.date.getMinutes()) }}:{{ pad(props.date.getSeconds()) }} {{ props.ampm ? ampm : '' }}
+ {{ pad(hours) }}:{{ pad(props.date.getMinutes()) }} {{ props.ampm ? ampm : '' }}
{{ props.date.getFullYear() }}-{{ pad(props.date.getMonth() + 1) }}-{{ pad(props.date.getDate()) }}
@@ -26,6 +27,10 @@ const props = defineProps({
default: Intl.DateTimeFormat().resolvedOptions().timeZone,
required: false
},
+ smAndDown: {
+ type: Boolean,
+ default: false,
+ required: false }
}
);
@@ -67,7 +72,7 @@ const ampm = computed(() => {
}
.td__time_time {
- font-size: 1em;
+ font-size: var(--default-font-size);
color: inherit;
text-align: center;
text-wrap: nowrap;
@@ -79,7 +84,7 @@ const ampm = computed(() => {
}
.td__date_date {
- font-size: 0.75em;
+ font-size: calc(0.85 * var(--default-font-size));
color: inherit;
text-align: center;
text-wrap: nowrap;
@@ -91,7 +96,7 @@ const ampm = computed(() => {
}
.td__timezone_tz {
- font-size: 0.75em;
+ font-size: calc(0.85 * var(--default-font-size));
color: inherit;
text-align: center;
text-wrap: nowrap;
diff --git a/src/text.ts b/src/text.ts
index 35d7916..55825eb 100644
--- a/src/text.ts
+++ b/src/text.ts
@@ -10,7 +10,7 @@ export function makeTextOverlays(): Text3dBatch[] {
const scale = 0.00018;
const textItems = [
["T CrB, aka", "Blaze Star"],
- ["Nova will", "become roughly", "this bright"],
+ ["Alphecca", "(Nova will", "become roughly", "this bright)"],
];
const up = Vector3d.create(0, 1, 0);
const locations = [
@@ -20,8 +20,9 @@ export function makeTextOverlays(): Text3dBatch[] {
],
[
Coordinates.raDecTo3d(15 + 24 / 60 + 41.268 / 3600, 25 + 42 / 60 + 52.89 / 3600),
- Coordinates.raDecTo3d(15 + 24 / 60 + 41.268 / 3600, 24 + 27 / 60 + 52.89 / 3600),
- Coordinates.raDecTo3d(15 + 24 / 60 + 41.268 / 3600, 23 + 12 / 60 + 52.89 / 3600),
+ Coordinates.raDecTo3d(15 + 24 / 60 + 41.268 / 3600, 24 + 17 / 60 + 52.89 / 3600),
+ Coordinates.raDecTo3d(15 + 24 / 60 + 41.268 / 3600, 23 + 2 / 60 + 52.89 / 3600),
+ Coordinates.raDecTo3d(15 + 24 / 60 + 41.268 / 3600, 21 + 47 / 60 + 52.89 / 3600),
]
];
const batches = textItems.map(items => new Text3dBatch(glyphHeight));