@cornerstonejs/core 4.15.15 → 4.15.17

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.
@@ -1029,7 +1029,7 @@ class BaseVolumeViewport extends Viewport {
1029
1029
  }
1030
1030
  volumeId ||= this.getVolumeId();
1031
1031
  const actorEntry = this.getActors()?.find((actor) => actor.referencedId === volumeId);
1032
- if (!actorIsA(actorEntry, 'vtkVolume')) {
1032
+ if (!actorEntry || !actorIsA(actorEntry, 'vtkVolume')) {
1033
1033
  return;
1034
1034
  }
1035
1035
  const actor = actorEntry.actor;
@@ -39,6 +39,9 @@ function vtkStreamingOpenGLTexture(publicAPI, model) {
39
39
  return;
40
40
  }
41
41
  const volume = cache.getVolume(volumeId);
42
+ if (!volume) {
43
+ return;
44
+ }
42
45
  model._openGLRenderWindow.activateTexture(publicAPI);
43
46
  publicAPI.createTexture();
44
47
  publicAPI.bind();
@@ -5,6 +5,7 @@ export interface vtkStreamingOpenGLTexture extends vtkOpenGLTexture {
5
5
  setUpdatedFrame: (frame: number) => void;
6
6
  setVolumeId: (volumeId: string) => void;
7
7
  releaseGraphicsResources: () => void;
8
+ hasUpdatedFrames: () => boolean;
8
9
  }
9
10
  export declare class ImageVolume {
10
11
  private _imageIds;
@@ -1 +1 @@
1
- export declare const version = "4.15.15";
1
+ export declare const version = "4.15.17";
@@ -1 +1 @@
1
- export const version = '4.15.15';
1
+ export const version = '4.15.17';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "4.15.15",
3
+ "version": "4.15.17",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -97,5 +97,5 @@
97
97
  "type": "individual",
98
98
  "url": "https://ohif.org/donate"
99
99
  },
100
- "gitHead": "d04af0b138a41d22bd74647a30447f13a8b258ea"
100
+ "gitHead": "3c522ab3ce79d2564a7dcdfd995a67ca7d0561e7"
101
101
  }