Skip to content

Commit

Permalink
Merge pull request #214 from LinkunGao/release/v1.14.5
Browse files Browse the repository at this point in the history
Release/v1.14.5
  • Loading branch information
LinkunGao authored Apr 17, 2023
2 parents a2b1683 + c9ce936 commit dc551a1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'LinkunGao'

# The full version, including alpha/beta/rc tags
release = 'v1.14.4'
release = 'v1.14.5'


# -- General configuration ---------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions docs/source/release/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -1615,3 +1615,7 @@ sceneIn?.loadNrrd(url, loadBar1, false, funa, opts);
## Release v1.14.4

- Fixed bug: draw lines not continuous on label 1, 2, 3.

## Release v1.14.5

- Fixed GUI overload issue in copperNrrdLoader.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "copper3d_visualisation",
"description": "A 3d visualisation package base on threejs provides multiple scenes and Nrrd image load funtion.",
"version": "1.14.4",
"version": "1.14.5",
"main": "dist/bundle.umd.js",
"moudle": "dist/bundle.esm.js",
"types": "dist/types/index.d.ts",
Expand Down
10 changes: 8 additions & 2 deletions src/Loader/copperNrrdLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ loader = new NRRDLoader();
// loader.setSegmentationn(true);

let cube: THREE.Mesh;
let gui: GUI;
let gui: GUI | undefined;
let oldGuiDom:HTMLDivElement;

let CircleGeometry = new THREE.RingGeometry(5, 6, 30);
let CircleMaterial = new THREE.MeshBasicMaterial({
Expand Down Expand Up @@ -158,6 +159,7 @@ export function copperNrrdLoader(
} else {
callback && callback(volume, nrrdMeshes, nrrdSlices);
}
gui = undefined
},
function (xhr: ProgressEvent<EventTarget>) {
loadingContainer.style.display = "flex";
Expand Down Expand Up @@ -427,13 +429,17 @@ export function addBoxHelper(
}

function configGui(opts?: optsType) {

if (opts && opts.openGui) {
if (opts.container) {
if(oldGuiDom){
opts.container.removeChild(oldGuiDom);
}
gui = new GUI({
width: 260,
autoPlace: false,
});

oldGuiDom = gui.domElement as HTMLDivElement;
opts.container.appendChild(gui.domElement);
} else {
gui = new GUI();
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ import {

import "./css/style.css";

export const REVISION = "v1.14.4";
export const REVISION = "v1.14.5";

console.log(
"%cCopper3D Visualisation %cBeta:v1.14.4",
"%cCopper3D Visualisation %cBeta:v1.14.5",
"padding: 3px;color:white; background:#023047",
"padding: 3px;color:white; background:#f50a25"
);
Expand Down

0 comments on commit dc551a1

Please sign in to comment.