diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f94453ebb..86d93b64bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added settings in the image view settings widget for panning and zooming the images ([#1176](https://github.com/CARTAvis/carta-frontend/issues/1176)). * Added supports for swapped-axes image cubes ([#1953](https://github.com/CARTAvis/carta-frontend/issues/1953)). ### Fixed +* Fixed the issue of contour levels not deleted as intended ([#2091](https://github.com/CARTAvis/carta-frontend/issues/2091)). * Fixed issue of only enabling catalog selection button when there is a layer of catalog overlay ([#1826](https://github.com/CARTAvis/carta-frontend/issues/1826)). * Fixed the issue of the corrupted spatial profile when cursor is moving ([#1602](https://github.com/CARTAvis/carta-frontend/issues/1602)). * Fixed NaN pixel value in the cursor info bar of the image viewer when the image is 1x1 pixel ([#1879](https://github.com/CARTAvis/carta-frontend/issues/1879)). @@ -34,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fixed the region position offset mismatch problem after zooming to fit for spatially matched images. ([#2028](https://github.com/CARTAvis/carta-frontend/issues/2028)). * Improved the performance of loading regions in batches ([#2040](https://github.com/CARTAvis/carta-frontend/issues/2040)). * Fixed offset between cusorInfo and upper wcs axis in the spatial profilers ([#1319](https://github.com/CARTAvis/carta-frontend/issues/1319)). +* Fixed mismatch between cursor and image during PV image panning ([#1790](https://github.com/CARTAvis/carta-frontend/issues/1790)). * Fixed the hanging problem for computed stokes animation ([#1238](https://github.com/CARTAvis/carta-backend/issues/1238)). ### Changed * Increased the upper limit of averaging width for line/polyline spatial profiles or PV images calculations ([#1949](https://github.com/CARTAvis/carta-frontend/issues/1949)). diff --git a/src/components/Dialogs/ContourDialog/ContourDialogComponent.tsx b/src/components/Dialogs/ContourDialog/ContourDialogComponent.tsx index 06b5e213e5..a2d5dc4c6b 100644 --- a/src/components/Dialogs/ContourDialog/ContourDialogComponent.tsx +++ b/src/components/Dialogs/ContourDialog/ContourDialogComponent.tsx @@ -223,6 +223,7 @@ export class ContourDialogComponent extends React.Component { private handleGraphClicked = (x: number) => { this.levels.push(x); + this.levels.sort(); }; private handleGraphRightClicked = (x: number) => { @@ -250,6 +251,7 @@ export class ContourDialogComponent extends React.Component { const val = parseFloat(valueString); if (isFinite(val)) { this.levels.push(val); + this.levels.sort(); } } } catch (e) { diff --git a/src/components/ImageView/RegionView/RegionViewComponent.tsx b/src/components/ImageView/RegionView/RegionViewComponent.tsx index 5ba8fd3ee3..95a7ae0b00 100644 --- a/src/components/ImageView/RegionView/RegionViewComponent.tsx +++ b/src/components/ImageView/RegionView/RegionViewComponent.tsx @@ -463,8 +463,8 @@ export class RegionViewComponent extends React.Component 0 ? zoomSpeed : 1.0 / zoomSpeed); - frame.zoomToPoint(cursorInfo.posImageSpace.x, cursorInfo.posImageSpace.y, newZoom, true); + frame.zoomToPoint(cursorPosImageSpace.x, cursorPosImageSpace.y, newZoom, true); // Zoom stage const zoomCenter = PreferenceStore.Instance.zoomPoint === ZoomPoint.CURSOR ? {x: mouseEvent.offsetX, y: mouseEvent.offsetY} : {x: this.props.width / 2, y: this.props.height / 2}; diff --git a/src/stores/CatalogOnlieQuery/CatalogOnlieQueryConfigStore.ts b/src/stores/CatalogOnlineQuery/CatalogOnlineQueryConfigStore.ts similarity index 100% rename from src/stores/CatalogOnlieQuery/CatalogOnlieQueryConfigStore.ts rename to src/stores/CatalogOnlineQuery/CatalogOnlineQueryConfigStore.ts diff --git a/src/stores/CatalogOnlieQuery/CatalogOnlineQueryProfileStore.ts b/src/stores/CatalogOnlineQuery/CatalogOnlineQueryProfileStore.ts similarity index 100% rename from src/stores/CatalogOnlieQuery/CatalogOnlineQueryProfileStore.ts rename to src/stores/CatalogOnlineQuery/CatalogOnlineQueryProfileStore.ts diff --git a/src/stores/index.ts b/src/stores/index.ts index 878a1e8ef6..b9497807d3 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -3,8 +3,8 @@ export * from "./AnimatorStore/AnimatorStore"; export * from "./AppStore/AppStore"; export * from "./Catalog/CatalogProfileStore"; export * from "./Catalog/CatalogStore"; -export * from "./CatalogOnlieQuery/CatalogOnlieQueryConfigStore"; -export * from "./CatalogOnlieQuery/CatalogOnlineQueryProfileStore"; +export * from "./CatalogOnlineQuery/CatalogOnlineQueryConfigStore"; +export * from "./CatalogOnlineQuery/CatalogOnlineQueryProfileStore"; export * from "./DialogStore/DialogStore"; export * from "./FileBrowserStore/FileBrowserStore"; export * from "./HelpStore/HelpStore";