@jax-data-science/sci-image-visualizer 0.2.17 → 0.2.19

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.
@@ -30,7 +30,18 @@ export declare class RetinalSegmenterService implements ISemanticSegmenter {
30
30
  * processing pipeline can run on the same loaded session rather than paying
31
31
  * the ~590 MB load twice.
32
32
  */
33
- getModel(modelId?: string, onProgress?: (loaded: number, total: number | null) => void, onStatus?: (status: string) => void): Promise<RetinalSegmenter>;
33
+ getModel(modelId?: string, onProgress?: (loaded: number, total: number | null) => void, onStatus?: (status: string) => void,
34
+ /**
35
+ * Abort the load. This model is ~590 MB, so a cancel has to reach the
36
+ * *download* — aborting only the inference that follows leaves the transfer
37
+ * running and the UI stuck in "Cancelling" until it completes.
38
+ *
39
+ * Deliberately not applied to a load already in flight: that promise may be
40
+ * shared with another caller (the toolbar tool and the pipeline both use
41
+ * this service), and one caller's cancel must not tear the model out from
42
+ * under the other. A second caller joining an in-flight load simply waits.
43
+ */
44
+ signal?: AbortSignal): Promise<RetinalSegmenter>;
34
45
  /** Whether a model is already loaded (warm). */
35
46
  isLoaded(modelId?: string): boolean;
36
47
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jax-data-science/sci-image-visualizer",
3
- "version": "0.2.17",
3
+ "version": "0.2.19",
4
4
  "description": "Browser-based scientific image visualization for Angular — gigapixel whole-slide (OpenSeadragon), 2D/3D (Plotly) and WebGPU (napari-js) rendering, with region/annotation editing and in-browser SAM segmentation.",
5
5
  "keywords": [
6
6
  "angular",
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "cellpose-js": "^0.4.1",
38
38
  "fast-png": "^6.4.0",
39
- "jax-ai-js": "^0.1.0",
39
+ "jax-ai-js": "^0.2.0",
40
40
  "napari-js": "^0.11.0",
41
41
  "openseadragon": "^6.0.2",
42
42
  "plotly.js-dist-min": "^3.0.1",