diff --git a/src/components/Analysis/ImageViewer.vue b/src/components/Analysis/ImageViewer.vue index 58ef14f..b4b13cb 100644 --- a/src/components/Analysis/ImageViewer.vue +++ b/src/components/Analysis/ImageViewer.vue @@ -8,7 +8,6 @@ import { useAlertsStore } from '@/stores/alerts' import { useAnalysisStore } from '@/stores/analysis' import { loadImage, scalePoint } from '@/utils/common' import WCS from '@/utils/wcs' -import VariableStarDialog from './VariableStarDialog.vue' const props = defineProps({ catalog: { @@ -38,8 +37,6 @@ const isHoveringLeaflet = ref(false) const raDec = ref({ ra: 0, dec: 0 }) const alerts = useAlertsStore() const analysisStore = useAnalysisStore() -const showVariableStarDialog = ref(false) -const variableTargetCoords = ref({ ra: null, dec: null }) onMounted(() => { // Initialize the map and its event listeners before adding the image overlay @@ -210,17 +207,7 @@ function createCatalogLayer(){ Flux: ${source.flux ?? 'N/A'}
RA: ${source.ra ?? 'N/A'}
Dec: ${source.dec ?? 'N/A'}
- ` - - div.querySelector('button').addEventListener('click',() => { - showVariableStarDialog.value = true - variableTargetCoords.value = { - ra: source.ra, - dec: source.dec - } - }) - // Create a circle marker for the source return new L.Circle([source.y_win, source.x_win], { color: 'var(--info)', @@ -265,16 +252,6 @@ function createCatalogLayer(){ - - - diff --git a/src/components/Analysis/LightCurvePlot.vue b/src/components/Analysis/LightCurvePlot.vue index b89e3e3..f822572 100644 --- a/src/components/Analysis/LightCurvePlot.vue +++ b/src/components/Analysis/LightCurvePlot.vue @@ -124,6 +124,7 @@ function createChart() { border: { color: text, width: 2 }, ticks: { color: text }, grid: { color: background, tickColor: text}, + reverse: true } }, plugins: { @@ -145,18 +146,20 @@ onMounted(() => { @@ -180,8 +183,6 @@ onMounted(() => { height: 100% !important; } .download-btn { - margin-left: 1rem; - margin-bottom: 1rem; align-self: flex-end; } diff --git a/src/components/Analysis/PeriodogramPlot.vue b/src/components/Analysis/PeriodogramPlot.vue index c73ebf7..ebf53c1 100644 --- a/src/components/Analysis/PeriodogramPlot.vue +++ b/src/components/Analysis/PeriodogramPlot.vue @@ -18,6 +18,7 @@ const props = defineProps({ const canvasEl = ref(null) let chart = null +const bestPeriod = ref(null) // Build an array of {x,y} points from store (x = frequency, y = power) function getXYPoints() { @@ -43,12 +44,11 @@ function createChart() { const background = style.getPropertyValue('--secondary-background') const points = getXYPoints() - let selected = [] if ( props.periodogramData.peakIndex != null && points[props.periodogramData.peakIndex] ) { - selected = [points[props.periodogramData.peakIndex]] + bestPeriod.value = points[props.periodogramData.peakIndex] } if (!points.length) { chart = new Chart(canvasEl.value, { @@ -79,7 +79,7 @@ function createChart() { }, { label: 'Selected', - data: selected, + data: bestPeriod.value ? [bestPeriod.value] : [], type: 'scatter', pointBackgroundColor: secondary, pointBorderColor: secondary, @@ -170,7 +170,7 @@ function handlePointClick(freq, pow) { if (!freq || Number.isNaN(freq) || freq <= 0) return const period = 1.0 / freq - emit('periodSelected', period) + emit('periodSelected', period, freq, pow, bestPeriod.value) } watch( @@ -186,20 +186,20 @@ onMounted(() => { @@ -223,8 +223,6 @@ onMounted(() => { height: 100% !important; } .download-btn { - margin-left: 1rem; - margin-bottom: 1rem; align-self: flex-end; } diff --git a/src/components/Analysis/PhasedLightCurvePlot.vue b/src/components/Analysis/PhasedLightCurvePlot.vue index 1e43254..ee7bf0b 100644 --- a/src/components/Analysis/PhasedLightCurvePlot.vue +++ b/src/components/Analysis/PhasedLightCurvePlot.vue @@ -1,3 +1,4 @@ +