@cornerstonejs/core 4.2.0 → 4.2.2
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.
|
@@ -20,18 +20,16 @@ import volumeNewImageEventDispatcher, { resetVolumeNewImageState, } from './help
|
|
|
20
20
|
import Viewport from './Viewport';
|
|
21
21
|
import vtkSlabCamera from './vtkClasses/vtkSlabCamera';
|
|
22
22
|
import getVolumeViewportScrollInfo from '../utilities/getVolumeViewportScrollInfo';
|
|
23
|
-
import { actorIsA
|
|
23
|
+
import { actorIsA } from '../utilities/actorCheck';
|
|
24
24
|
import snapFocalPointToSlice from '../utilities/snapFocalPointToSlice';
|
|
25
25
|
import getVoiFromSigmoidRGBTransferFunction from '../utilities/getVoiFromSigmoidRGBTransferFunction';
|
|
26
26
|
import isEqual, { isEqualAbs, isEqualNegative } from '../utilities/isEqual';
|
|
27
27
|
import applyPreset from '../utilities/applyPreset';
|
|
28
|
-
import imageIdToURI from '../utilities/imageIdToURI';
|
|
29
28
|
import uuidv4 from '../utilities/uuidv4';
|
|
30
29
|
import * as metaData from '../metaData';
|
|
31
30
|
import { getCameraVectors } from './helpers/getCameraVectors';
|
|
32
31
|
import { isContextPoolRenderingEngine } from './helpers/isContextPoolRenderingEngine';
|
|
33
32
|
import mprCameraValues from '../constants/mprCameraValues';
|
|
34
|
-
import { setConfiguration, getConfiguration } from '@cornerstonejs/core';
|
|
35
33
|
class BaseVolumeViewport extends Viewport {
|
|
36
34
|
constructor(props) {
|
|
37
35
|
super(props);
|
|
@@ -287,13 +287,16 @@ class Viewport {
|
|
|
287
287
|
actors.forEach((actor) => {
|
|
288
288
|
this.addActor(actor);
|
|
289
289
|
});
|
|
290
|
-
const prevViewPresentation = this.getViewPresentation();
|
|
291
|
-
const prevViewRef = this.getViewReference();
|
|
292
|
-
this.resetCamera();
|
|
293
290
|
if (!resetCamera) {
|
|
291
|
+
const prevViewPresentation = this.getViewPresentation();
|
|
292
|
+
const prevViewRef = this.getViewReference();
|
|
293
|
+
this.resetCamera();
|
|
294
294
|
this.setViewReference(prevViewRef);
|
|
295
295
|
this.setViewPresentation(prevViewPresentation);
|
|
296
296
|
}
|
|
297
|
+
else {
|
|
298
|
+
this.resetCamera();
|
|
299
|
+
}
|
|
297
300
|
triggerEvent(this.element, Events.ACTORS_CHANGED, {
|
|
298
301
|
viewportId: this.id,
|
|
299
302
|
removedActors: [],
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.2.
|
|
1
|
+
export declare const version = "4.2.2";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.2.
|
|
1
|
+
export const version = '4.2.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
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": "
|
|
100
|
+
"gitHead": "4f72463ab07c045e223800f5db9b1373f9e53b07"
|
|
101
101
|
}
|