@cornerstonejs/core 1.66.10 → 1.66.11
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/dist/cjs/RenderingEngine/Viewport.d.ts +2 -2
- package/dist/cjs/RenderingEngine/Viewport.js +1 -1
- package/dist/cjs/RenderingEngine/Viewport.js.map +1 -1
- package/dist/esm/RenderingEngine/Viewport.js +1 -1
- package/dist/esm/RenderingEngine/Viewport.js.map +1 -1
- package/dist/types/RenderingEngine/Viewport.d.ts +2 -2
- package/dist/types/RenderingEngine/Viewport.d.ts.map +1 -1
- package/dist/umd/index.js.map +1 -1
- package/package.json +2 -2
- package/src/RenderingEngine/Viewport.ts +7 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "1.66.
|
|
3
|
+
"version": "1.66.11",
|
|
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": "
|
|
50
|
+
"gitHead": "2fdc5ae7ab4ff5b27f832ff5ee8ab202750971ad"
|
|
51
51
|
}
|
|
@@ -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
|
-
*
|
|
236
|
-
*
|
|
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
|
-
*
|
|
485
|
-
*
|
|
486
|
-
*
|
|
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(
|
|
917
|
+
public getReferenceId(_specifier?: ViewReferenceSpecifier): string {
|
|
918
918
|
return null;
|
|
919
919
|
}
|
|
920
920
|
|