Skip to content

Commit

Permalink
Updated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
crocka committed Jul 28, 2023
1 parent ac7f054 commit 1697f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/AppStore/AppStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ export class AppStore {
const tileSizeFullRes = reqView.mip * 256;
const midPointTileCoords = {x: midPointImageCoords.x / tileSizeFullRes - 0.5, y: midPointImageCoords.y / tileSizeFullRes - 0.5};

// If Bunit = km/s, default compressionQuality is set to 20 instead of 11
// If BUNIT = km/s, adopted compressionQuality is set to 32 regardless the preferences setup
const bunitVariant = ["km/s", "km s-1", "km s^-1"];
let compressionQuality = this.preferenceStore.imageCompressionQuality;
if (bunitVariant.includes(frame.headerUnit)) {
Expand Down Expand Up @@ -1572,7 +1572,7 @@ export class AppStore {

private updateView = (tiles: TileCoordinate[], fileId: number, channel: number, stokes: number, focusPoint: Point2D, headerUnit: string) => {
const isAnimating = this.animatorStore.serverAnimationActive;
// If Bunit = km/s, default compressionQuality is set to 20 instead of 11
// If BUNIT = km/s, adopted compressionQuality is set to 32 regardless the preferences setup
const bunitVariant = ["km/s", "km s-1", "km s^-1"];
const compressionQuality = bunitVariant.includes(headerUnit) ? Math.max(this.preferenceStore.imageCompressionQuality, 32) : this.preferenceStore.imageCompressionQuality;
if (isAnimating) {
Expand Down

0 comments on commit 1697f60

Please sign in to comment.