diff --git a/CHANGELOG.md b/CHANGELOG.md index 53705e2fc4..0b21b4e14e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,8 +33,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Synchronized the value format in the pan and zoom tab in the image view settings widget ([#2235](https://github.com/CARTAvis/carta-frontend/issues/2235)). * Fix save image/export regions bug which could cause directory overwrite or deletion ([#1377](https://github.com/CARTAvis/carta-backend/issues/1377)). * Fix incorrect rendering of image view when moving the window to monitors with different screen resolution ([[#2285](https://github.com/CARTAvis/carta-frontend/issues/2285)]) -* Fixed the unit label of the y axis for flux density in the spectral profiles ([#2355](https://github.com/CARTAvis/carta-frontend/issues/2355)). ### Changed +* Changed the limitation of plotting up-to-10 profiles in the spectral profiler multi-profile mode to up-to-16 ([#2440](https://github.com/CARTAvis/carta-frontend/issues/2440)) +* Fixed the unit label of the y axis for flux density in the spectral profiles ([#2355](https://github.com/CARTAvis/carta-frontend/issues/2355)). * Axes order of the PV diagram becomes a sticky parameter ([#2402](https://github.com/CARTAvis/carta-frontend/issues/2402)). ## [4.1.0] diff --git a/src/stores/Widgets/SpectralProfileWidget/SpectralProfileSelectionStore.ts b/src/stores/Widgets/SpectralProfileWidget/SpectralProfileSelectionStore.ts index 2b5d0e619e..c2b3f36846 100644 --- a/src/stores/Widgets/SpectralProfileWidget/SpectralProfileSelectionStore.ts +++ b/src/stores/Widgets/SpectralProfileWidget/SpectralProfileSelectionStore.ts @@ -29,7 +29,7 @@ interface SpectralConfig extends CARTA.SetSpectralRequirements.ISpectralConfig { regionId: number | null; } -const MAXIMUM_PROFILES = 10; +const MAXIMUM_PROFILES = 16; type Profile = { channelValues: number[]; diff --git a/src/utilities/color/color.ts b/src/utilities/color/color.ts index 34601a97c9..0c9aa90476 100644 --- a/src/utilities/color/color.ts +++ b/src/utilities/color/color.ts @@ -20,6 +20,8 @@ export const SWATCH_COLORS = [ Colors.FOREST3, Colors.GOLD3, Colors.CERULEAN3, + Colors.ROSE3, + Colors.VERMILION3, Colors.LIGHT_GRAY3, Colors.DARK_GRAY3, Colors.WHITE, @@ -27,13 +29,12 @@ export const SWATCH_COLORS = [ ]; export const DEFAULT_COLOR = SWATCH_COLORS[0]; -const SELECTABLE_COLORS = ["blue", "orange", "green", "red", "violet", "sepia", "indigo", "gray", "lime", "turquoise", "forest", "gold", "cobalt", "light_gray", "dark_gray", "white", "black"]; +const SELECTABLE_COLORS = ["blue", "orange", "green", "red", "violet", "sepia", "indigo", "gray", "lime", "turquoise", "forest", "gold", "cerulean", "rose", "vermilion", "light_gray", "dark_gray"]; export const AUTO_COLOR_OPTIONS = SELECTABLE_COLORS.map(color => { return `auto-${color}`; }); -// SUPPORTED_COLORS are supported since ver. 1.4, and rose/vermilion are removed from selectable colors due to similar to red -const SUPPORTED_COLORS = [...SELECTABLE_COLORS, "rose", "vermilion"]; +const SUPPORTED_COLORS = [...SELECTABLE_COLORS, "white", "black"]; // Supported auto colors are in pattern "auto-blue", "auto-orange", "auto-green"...etc // Validate with regex ^auto-(blue|orange|green...)$