@cornerstonejs/core 1.66.10 → 1.66.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.66.10",
3
+ "version": "1.66.12",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "type": "individual",
48
48
  "url": "https://ohif.org/donate"
49
49
  },
50
- "gitHead": "edff7a7e50c88c2861340907100dd3dd0527116b"
50
+ "gitHead": "15834a6287456183677cf67764614e785cbd8f3b"
51
51
  }
@@ -2863,7 +2863,7 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
2863
2863
  const colonIndex = imageId.indexOf(':');
2864
2864
  imageURI = imageId.substring(colonIndex + 1);
2865
2865
  }
2866
- return referencedImageId.endsWith(imageURI);
2866
+ return referencedImageId?.endsWith(imageURI);
2867
2867
  }
2868
2868
 
2869
2869
  /**
@@ -3047,7 +3047,6 @@ class StackViewport extends Viewport implements IStackViewport, IImagesLoader {
3047
3047
  };
3048
3048
 
3049
3049
  triggerEvent(this.element, Events.COLORMAP_MODIFIED, eventDetail);
3050
-
3051
3050
  }
3052
3051
 
3053
3052
  private unsetColormapGPU() {
@@ -85,7 +85,7 @@ class Viewport implements IViewport {
85
85
  /** a Map containing the actor uid and actors */
86
86
  _actors: Map<string, any>;
87
87
  /** Default options for the viewport which includes orientation, viewPlaneNormal and backgroundColor */
88
- readonly defaultOptions: any;
88
+ readonly defaultOptions: Record<string, any>;
89
89
  /** options for the viewport which includes orientation axis, backgroundColor and displayArea */
90
90
  options: ViewportInputOptions;
91
91
  /** informs if a new actor was added before a resetCameraClippingRange phase */
@@ -232,8 +232,8 @@ class Viewport implements IViewport {
232
232
  * works with vtk-js backed rendering pipeline.
233
233
  *
234
234
  * @param flipOptions - Flip options specifying the axis of flip
235
- * @param flipOptions.flipHorizontal - Flip the viewport on horizontal axis
236
- * @param flipOptions.flipVertical - Flip the viewport on vertical axis
235
+ * * flipOptions.flipHorizontal - Flip the viewport on horizontal axis
236
+ * * flipOptions.flipVertical - Flip the viewport on vertical axis
237
237
  */
238
238
  protected flip({ flipHorizontal, flipVertical }: FlipDirection): void {
239
239
  const imageData = this.getDefaultImageData();
@@ -481,9 +481,9 @@ class Viewport implements IViewport {
481
481
  * Add an actor to the viewport including its id, its actor and slabThickness
482
482
  * if defined
483
483
  * @param actorEntry - ActorEntry
484
- * @param actorEntry.uid - The unique identifier for the actor.
485
- * @param actorEntry.actor - The volume actor.
486
- * @param actorEntry.slabThickness - The slab thickness.
484
+ * * actorEntry.uid - The unique identifier for the actor.
485
+ * * actorEntry.actor - The volume actor.
486
+ * * actorEntry.slabThickness - The slab thickness.
487
487
  */
488
488
  public addActor(actorEntry: ActorEntry): void {
489
489
  const { uid: actorUID, actor } = actorEntry;
@@ -914,7 +914,7 @@ class Viewport implements IViewport {
914
914
  throw new Error('Not implemented');
915
915
  }
916
916
 
917
- public getReferenceId(specifier?: ViewReferenceSpecifier): string {
917
+ public getReferenceId(_specifier?: ViewReferenceSpecifier): string {
918
918
  return null;
919
919
  }
920
920