Skip to content

Commit 03f5b4b

Browse files
authored
Merge pull request #311 from LinkunGao/chore/v2.2.1
Chore/v2.2.1
2 parents 1a46b5a + 79d2880 commit 03f5b4b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "copper3d",
33
"description": "A 3d visualisation package base on threejs provides multiple scenes and Nrrd image load funtion.",
4-
"version": "2.2.0",
4+
"version": "2.2.1",
55
"main": "dist/bundle.umd.js",
66
"moudle": "dist/bundle.esm.js",
77
"types": "dist/types/index.d.ts",

src/Utils/segmentation/DrawToolCore.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ export class DrawToolCore extends CommToolsData {
170170
sliceIndex,
171171
];
172172
this.setUpSphereOrigins(mouseX, mouseY, sliceIndex);
173-
173+
// Note the sphere origin here is x, y, z
174+
// x: pixel x, y: pixel y, z: slice index (mm)
174175
switch (cal_position) {
175176
case "tumour":
176177
this.nrrd_states.tumourSphereOrigin = JSON.parse(JSON.stringify( this.nrrd_states.sphereOrigin));

src/index.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ import {
4040
IOptVTKLoader,
4141
} from "./types/types";
4242

43-
import { IPaintImage, ICommXYZ } from "./Utils/segmentation/coreTools/coreType";
43+
import { IPaintImage, ICommXYZ, IGUIStates, IGuiParameterSettings, INrrdStates} from "./Utils/segmentation/coreTools/coreType";
4444

4545
import "./css/style.css";
4646

47-
export const REVISION = "v2.2.0";
47+
export const REVISION = "v2.2.1";
4848

4949
console.log(
50-
"%cCopper3D Visualisation %cBeta:v2.2.0",
50+
"%cCopper3D Visualisation %cBeta:v2.2.1",
5151
"padding: 3px;color:white; background:#023047",
5252
"padding: 3px;color:white; background:#f50a25"
5353
);
@@ -90,5 +90,8 @@ export type {
9090
IPaintImage,
9191
exportPaintImageType,
9292
IOptVTKLoader,
93-
ICommXYZ
93+
ICommXYZ,
94+
IGUIStates,
95+
IGuiParameterSettings,
96+
INrrdStates
9497
};

0 commit comments

Comments
 (0)