Skip to content

Commit 2667069

Browse files
authored
Merge pull request #175 from LinkunGao/release/v1.13.11
Release/v1.13.11
2 parents b44e0ef + 55d99a8 commit 2667069

File tree

7 files changed

+35
-8
lines changed

7 files changed

+35
-8
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.10'
25+
release = 'v1.13.11'
2626

2727

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

docs/source/release/release.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,3 +1315,17 @@ const resetMainAreaSize = (factor: number) => {
13151315
}
13161316
```
13171317
- We can use this callback function to get the mask data.
1318+
1319+
## Release v1.13.11
1320+
1321+
- Fixed copperRenderer gui ModelVisualisation bug.
1322+
- update the copperRenderer optional type.
1323+
```ts
1324+
interface optType {
1325+
guiOpen: boolean;
1326+
camera?: boolean;
1327+
performance?: boolean;
1328+
light?: boolean;
1329+
[key: string]: string | boolean | undefined;
1330+
}
1331+
```

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.10",
4+
"version": "1.13.11",
55
"main": "dist/bundle.umd.js",
66
"moudle": "dist/bundle.esm.js",
77
"types": "dist/types/index.d.ts",

src/Renderer/baseRenderer.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,16 @@ export default class baseRenderer {
189189
}
190190
this.visualCtrls = [];
191191

192-
setTimeout(() => {
192+
let count = 0;
193+
194+
const timer = setInterval(() => {
195+
if (this.currentScene.content.children.length > 0) {
196+
count = 0;
197+
} else if (count === 5) {
198+
count = 0;
199+
clearInterval(timer);
200+
}
201+
193202
let flag: boolean = true;
194203
let modelChildrenArray: Array<modelVisualisationDataType> = [];
195204
const modelChildren = this.currentScene.content
@@ -254,6 +263,7 @@ export default class baseRenderer {
254263
up.add(this.currentScene.camera.up, "y");
255264
up.add(this.currentScene.camera.up, "z");
256265
}
266+
count += 1;
257267
}, 1500);
258268
}
259269
}

src/index.ts

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

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

38-
export const REVISION = "v1.13.10";
38+
export const REVISION = "v1.13.11";
3939

4040
console.log(
41-
"%cCopper3D Visualisation %cBeta:v1.13.10",
41+
"%cCopper3D Visualisation %cBeta:v1.13.11",
4242
"padding: 3px;color:white; background:#023047",
4343
"padding: 3px;color:white; background:#f50a25"
4444
);

src/types/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ interface SceneMapType {
88
}
99
interface optType {
1010
guiOpen: boolean;
11-
[key: string]: string | boolean;
11+
camera?: boolean;
12+
performance?: boolean;
13+
light?: boolean;
14+
[key: string]: string | boolean | undefined;
1215
}
1316
interface stateType {
1417
playbackSpeed: number;

0 commit comments

Comments
 (0)