Skip to content

Commit

Permalink
WIP Map color ramp improvements #214
Browse files Browse the repository at this point in the history
  • Loading branch information
cugarteblair committed Jan 22, 2025
1 parent c6f8295 commit 460b1cf
Show file tree
Hide file tree
Showing 7 changed files with 484 additions and 492 deletions.
5 changes: 0 additions & 5 deletions web-client/src/components/SrScatterPlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ const messageClass = computed(() => {
};
});
const computedYapcColorMap = computed(() => {
return atl03ColorMapStore.getSelectedAtl03YapcColorMapName();
});
watch (() => atlChartFilterStore.showPhotonCloud, async (newShowPhotonCloud, oldShowPhotonCloud) => {
console.log('showPhotonCloud changed from:', oldShowPhotonCloud ,' to:', newShowPhotonCloud);
if(!loadingComponent.value){
Expand Down
4 changes: 3 additions & 1 deletion web-client/src/components/SrYapcColorLegend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const emit = defineEmits(['restore-yapc-color-defaults-click', 'yapc-color-chang
const atl03ColorMapStore = useAtl03ColorMapStore();
const gradientStyle = computed(() => {
const style = atl03ColorMapStore.getColorGradientStyle();
//console.log('--> computed: colorMapStore.getColorGradientStyle() :', style);
console.log('--> computed: colorMapStore.getColorGradientStyle() :', style);
return style || { background: 'linear-gradient(to right, #ccc, #ccc)', height: '1.25rem', width: '100%' };
});
Expand All @@ -77,6 +77,8 @@ onMounted(async () => {
if (!atl03ColorMapStore.isInitialized) {
await atl03ColorMapStore.initializeAtl03ColorMapStore();
}
atl03ColorMapStore.updateAtl03YapcColorMapValues();
console.log('Mounted SrYapcColors colors:', atl03ColorMapStore.getNamedColorPalette());
});
Expand Down
1 change: 0 additions & 1 deletion web-client/src/components/SrYapcColors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const emit = defineEmits(['yapc-selection-changed', 'yapc-defaults-changed']);
// Initialize the store
onMounted(async () => {
await atl03ColorMapStore.initializeAtl03ColorMapStore();
});
// Handle menu selection changes
Expand Down
22 changes: 0 additions & 22 deletions web-client/src/composables/useChartData.ts

This file was deleted.

1 change: 1 addition & 0 deletions web-client/src/stores/atl03ColorMapStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const useAtl03ColorMapStore = defineStore('atl03ColorMap', {
},
updateAtl03YapcColorMapValues()
{
//console.log('updateAtl03YapcColorMapValues selectedColorMap:',this.selectedAtl03YapcColorMapName, ' numShadesForAtl03Yapc:',this.numShadesForAtl03Yapc);
try{
this.atl03YapcColorMap = colormap({
colormap: this.selectedAtl03YapcColorMapName, // Use the selected colormap
Expand Down
Loading

0 comments on commit 460b1cf

Please sign in to comment.