@jax-data-science/sci-image-visualizer 0.8.1 → 0.8.3

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.
@@ -189,6 +189,10 @@ export declare class NapariVisualizerService extends BaseStoreVisualizer impleme
189
189
  private loadingBadge;
190
190
  private tileLoading;
191
191
  private observationsLoading;
192
+ /** Image tiles in flight, and the scene they belong to: a fetch that outlives {@link reset}
193
+ * settles against the old generation and leaves the new scene's count alone. */
194
+ private imageTilesLoading;
195
+ private imageTilesGeneration;
192
196
  /** Monotonic load generation. Bumped by {@link reset} and {@link cancelLoading}; the frame-loading
193
197
  * loops (volume assembly, surface preload) capture it and bail when it changes, so a Cancel (or a
194
198
  * new plot) actually stops fetching frames instead of running to completion in the background. */
@@ -326,7 +330,8 @@ export declare class NapariVisualizerService extends BaseStoreVisualizer impleme
326
330
  */
327
331
  private renderImageTiled;
328
332
  /** Build a pyramidal TiledSource backed by the server `/tile` endpoint. `channel` selects a band
329
- * (grayscale luminance, real levels only); omit it for the composite (RGBA, all levels). */
333
+ * (grayscale luminance, real levels only); omit it for the composite (RGBA, all levels).
334
+ * `scene` is the generation of the render that asked for it, taken before that render's awaits. */
330
335
  private buildTiledSource;
331
336
  /** (Re)fetch a coarse per-channel luminance sample for the histogram (tiled mode has no full
332
337
  * in-memory pixels). One cheap overview tile per channel; cached by channel index. */
@@ -101,6 +101,10 @@ export declare class VisualizerComponent implements OnInit, OnChanges, AfterView
101
101
  * the newer render's overlay, or applying its ROIs.
102
102
  */
103
103
  private renderToken;
104
+ /** Set once the template, and with it the plot div, exists (see ngAfterViewInit). */
105
+ private viewReady;
106
+ /** An image-less dataset whose draw waits for the view: see plotSpatialWithoutImage. */
107
+ private pendingSpatialDraw;
104
108
  zIndex: number;
105
109
  maxIndex: number;
106
110
  contextMenu: ContextMenu;
@@ -404,6 +408,8 @@ export declare class VisualizerComponent implements OnInit, OnChanges, AfterView
404
408
  private reconcileSelectedPlotType;
405
409
  ngOnInit(): void;
406
410
  ngAfterViewInit(): void;
411
+ /** The plot div exists now: run an image-less draw that arrived before it did. */
412
+ private onViewReady;
407
413
  onProfilePanelDragStart(e: MouseEvent): void;
408
414
  /** Grab the toolbar handle: detach it into a floating window (if still docked)
409
415
  * and start dragging. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jax-data-science/sci-image-visualizer",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "engines": {
5
5
  "node": ">=20.9.0"
6
6
  },