@cornerstonejs/core 3.0.1 → 3.0.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.
|
@@ -247,7 +247,8 @@ class BaseVolumeViewport extends Viewport {
|
|
|
247
247
|
camera.setViewUpFrom(viewUp);
|
|
248
248
|
this.initialViewUp = viewUp;
|
|
249
249
|
if (resetCamera) {
|
|
250
|
-
this
|
|
250
|
+
const t = this;
|
|
251
|
+
t.resetCamera({ resetOrientation: false, resetRotation: false });
|
|
251
252
|
}
|
|
252
253
|
}
|
|
253
254
|
initializeVolumeNewImageEventDispatcher() {
|
|
@@ -9,6 +9,7 @@ export declare class Surface {
|
|
|
9
9
|
private _polys;
|
|
10
10
|
private _segmentIndex;
|
|
11
11
|
private _centroid;
|
|
12
|
+
private _visible;
|
|
12
13
|
constructor(props: SurfaceProps);
|
|
13
14
|
private _getSizeInBytes;
|
|
14
15
|
private _updateCentroid;
|
|
@@ -19,6 +20,8 @@ export declare class Surface {
|
|
|
19
20
|
get polys(): number[];
|
|
20
21
|
set polys(polys: number[]);
|
|
21
22
|
get segmentIndex(): number;
|
|
23
|
+
get visible(): boolean;
|
|
24
|
+
set visible(visible: boolean);
|
|
22
25
|
get centroid(): Point3;
|
|
23
26
|
get flatPointsArray(): number[];
|
|
24
27
|
get totalNumberOfPoints(): number;
|
|
@@ -9,6 +9,7 @@ export class Surface {
|
|
|
9
9
|
this._segmentIndex = props.segmentIndex;
|
|
10
10
|
this.sizeInBytes = this._getSizeInBytes();
|
|
11
11
|
this._updateCentroid();
|
|
12
|
+
this._visible = true;
|
|
12
13
|
}
|
|
13
14
|
_getSizeInBytes() {
|
|
14
15
|
return this._points.length * 4 + this._polys.length * 4;
|
|
@@ -49,6 +50,12 @@ export class Surface {
|
|
|
49
50
|
get segmentIndex() {
|
|
50
51
|
return this._segmentIndex;
|
|
51
52
|
}
|
|
53
|
+
get visible() {
|
|
54
|
+
return this._visible;
|
|
55
|
+
}
|
|
56
|
+
set visible(visible) {
|
|
57
|
+
this._visible = visible;
|
|
58
|
+
}
|
|
52
59
|
get centroid() {
|
|
53
60
|
return this._centroid;
|
|
54
61
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Cornerstone3D Core",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"dev": "tsc --project ./tsconfig.json --watch",
|
|
64
64
|
"format-check": "npx eslint ./src --quiet",
|
|
65
65
|
"api-check": "api-extractor --debug run ",
|
|
66
|
-
"build:update-api": "yarn run build:esm && api-extractor run --local",
|
|
67
66
|
"prepublishOnly": "yarn run build"
|
|
68
67
|
},
|
|
69
68
|
"dependencies": {
|
|
@@ -82,5 +81,5 @@
|
|
|
82
81
|
"type": "individual",
|
|
83
82
|
"url": "https://ohif.org/donate"
|
|
84
83
|
},
|
|
85
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "2bc521eac85d1dc5f5192d5c8015944bed64262e"
|
|
86
85
|
}
|