@jax-data-science/sci-image-visualizer 0.2.6 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16392,6 +16392,29 @@ class OpenSeadragonVisualizerService extends BaseStoreVisualizer {
16392
16392
  // crisp nearest-neighbour blocks).
16393
16393
  minZoomImageRatio: 0.01,
16394
16394
  maxZoomPixelRatio: 20,
16395
+ // OSD's stock value, restored. DO NOT RAISE IT: the name reads like
16396
+ // "minimum sharpness" but it is the opposite. From OSD's own
16397
+ // TiledImage._getLevelsInterval:
16398
+ //
16399
+ // highestLevel = floor( log2( currentZeroRatio / minPixelRatio ) )
16400
+ //
16401
+ // minPixelRatio is a floor on how small a tile pixel may shrink, and it
16402
+ // DIVIDES into the ratio - so raising it lowers the chosen level, i.e.
16403
+ // picks a COARSER image. OSD's own comment on the default says as much:
16404
+ // "closer to 0 draws tiles meant for a higher zoom at this zoom".
16405
+ //
16406
+ // Measured on a flat 22304x24528 image (levels 697/1394/2788/5576/11152/
16407
+ // 22304), predicted level matching actual in all nine trials:
16408
+ //
16409
+ // zoom 2 zoom 8 ~1:1
16410
+ // 1.0 1.34x up 1.34x up 1.86x up
16411
+ // 0.5 0.67x (none) 0.67x (none) 0.93x -> full res
16412
+ // 0.25 0.33x 0.33x 0.93x
16413
+ //
16414
+ // 0.5 is what gives "never upscaled below native, full resolution at 1:1".
16415
+ // 0.25 is not better - it jumps two rungs finer and fetches ~4x the tiles
16416
+ // for no visible gain, and tiles are not cached by the ingress.
16417
+ minPixelRatio: 0.5,
16395
16418
  // Wait for the view to settle before pulling new tiles (less churn).
16396
16419
  immediateRender: false,
16397
16420
  animationTime: 0.4,