Skip to content

Commit 7ff5c2b

Browse files
authored
Merge pull request #205 from LinkunGao/release/v1.13.33
Release/v1.13.33
2 parents 786cd57 + 5a0f0c8 commit 7ff5c2b

File tree

7 files changed

+32
-9
lines changed

7 files changed

+32
-9
lines changed

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
author = 'LinkunGao'
2323

2424
# The full version, including alpha/beta/rc tags
25-
release = 'v1.13.31'
25+
release = 'v1.13.33'
2626

2727

2828
# -- General configuration ---------------------------------------------------

docs/source/release/release.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,3 +1540,23 @@ const resetMainAreaSize = (factor: number) => {
15401540

15411541
- update copper3d_nrrd_loader
15421542
- fixed the space issue.
1543+
1544+
## Release v1.13.33
1545+
1546+
- update the copperNrrdLoader with segmentation.
1547+
1548+
```ts
1549+
copperNrrdLoader(
1550+
url: string,
1551+
loadingBar: loadingBarType,
1552+
segmentation: boolean,
1553+
callback?: (
1554+
volume: any,
1555+
nrrdMeshes: nrrdMeshesType,
1556+
nrrdSlices: nrrdSliceType,
1557+
gui?: GUI
1558+
) => void,
1559+
opts?: optsType
1560+
)
1561+
sceneIn?.loadNrrd(url, loadBar1, false, funa, opts);
1562+
```

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_visualisation",
33
"description": "A 3d visualisation package base on threejs provides multiple scenes and Nrrd image load funtion.",
4-
"version": "1.13.32",
4+
"version": "1.13.33",
55
"main": "dist/bundle.umd.js",
66
"moudle": "dist/bundle.esm.js",
77
"types": "dist/types/index.d.ts",

src/Loader/copperNrrdLoader.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ let loader: any;
1717

1818
loader = new NRRDLoader();
1919

20-
loader.setSegmentation(true);
21-
2220
// loader.setSegmentationn(true);
2321

2422
let cube: THREE.Mesh;
@@ -38,6 +36,7 @@ export interface optsType {
3836
export function copperNrrdLoader(
3937
url: string,
4038
loadingBar: loadingBarType,
39+
segmentation: boolean,
4140
callback?: (
4241
volume: any,
4342
nrrdMeshes: nrrdMeshesType,
@@ -52,6 +51,9 @@ export function copperNrrdLoader(
5251
let { loadingContainer, progress } = loadingBar;
5352

5453
let name: string = url.split("/").pop() as string;
54+
55+
loader.setSegmentation(segmentation);
56+
5557
loader.load(
5658
url,
5759
function (volume: any) {

src/Scene/commonSceneMethod.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export default class commonScene {
265265
loadNrrd(
266266
url: string,
267267
loadingBar: loadingBarType,
268+
segmentation: boolean,
268269
callback?: (
269270
volume: any,
270271
nrrdMeshes: nrrdMeshesType,
@@ -273,7 +274,7 @@ export default class commonScene {
273274
) => void,
274275
opts?: optsType
275276
) {
276-
copperNrrdLoader(url, loadingBar, callback, opts);
277+
copperNrrdLoader(url, loadingBar, segmentation, callback, opts);
277278
}
278279

279280
loadOBJ(url: string, callback?: (mesh: THREE.Group) => void) {

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ import {
3636

3737
import "./css/style.css";
3838

39-
export const REVISION = "v1.13.32";
39+
export const REVISION = "v1.13.33";
4040

4141
console.log(
42-
"%cCopper3D Visualisation %cBeta:v1.13.32",
42+
"%cCopper3D Visualisation %cBeta:v1.13.33",
4343
"padding: 3px;color:white; background:#023047",
4444
"padding: 3px;color:white; background:#f50a25"
4545
);

0 commit comments

Comments
 (0)