Skip to content

Commit 286e90a

Browse files
authored
Merge pull request #186 from LinkunGao/release/v1.13.21
Release/v1.13.21
2 parents 93a79e9 + 8cf5179 commit 286e90a

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
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.18'
25+
release = 'v1.13.21'
2626

2727

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

docs/source/release/release.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,3 +1468,7 @@ const resetMainAreaSize = (factor: number) => {
14681468
- test web worker
14691469
- add rollup-plugin-worker
14701470
- remove logs
1471+
1472+
## Release v1.13.21
1473+
1474+
- fixed the export mask data no data value bug.

package-lock.json

Lines changed: 1 addition & 1 deletion
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.20",
4+
"version": "1.13.21",
55
"main": "dist/bundle.umd.js",
66
"moudle": "dist/bundle.esm.js",
77
"types": "dist/types/index.d.ts",

src/Utils/workers/reformatSaveDataWorker.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function restructData(
7373

7474
let start: unknown = new Date();
7575

76-
const copiedArray = deepCopy(originArr) as paintImageType[];
76+
// const copiedArray = deepCopy(originArr) as paintImageType[];
7777

7878
let end: unknown = new Date();
7979
let timeDiff = (end as number) - (start as number); // time difference in milliseconds
@@ -93,13 +93,15 @@ function restructData(
9393

9494
exportTemp.sliceIndex = originArr[i].index;
9595

96-
const imageData = copiedArray[i].image;
96+
// const imageData = copiedArray[i].image;
9797

9898
// const temp = Array.from(imageData.data).map((x) => Number(x));
99-
const temp = [];
100-
for (let j = 0; j < imageData.data.length; j++) {
101-
temp.push(imageData.data[j]);
102-
}
99+
// const temp = [];
100+
const copiedArray = originArr[i].image.data.slice();
101+
const temp = [...copiedArray];
102+
// for (let j = 0; j < imageData.data.length; j++) {
103+
// temp.push(imageData.data[j]);
104+
// }
103105

104106
(exportTemp as any).data = temp;
105107
reformatData.push(exportTemp);

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.20";
39+
export const REVISION = "v1.13.21";
4040

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

0 commit comments

Comments
 (0)