brainsmatics 1.0.48 → 1.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/middleware.js +2 -2
- package/.vscode/settings.json +3 -0
- package/Dockerfile +3 -4
- package/docker-compose.yml +1 -1
- package/package.json +9 -2
- package/dist/App.d.ts +0 -4
- package/dist/basedecoder-0503cc54.js +0 -1
- package/dist/basedecoder-11034ec6.mjs +0 -89
- package/dist/component/2d/config.d.ts +0 -40
- package/dist/component/2d/contextmenu/ContextMenuX.d.ts +0 -3
- package/dist/component/2d/distribution/index.d.ts +0 -4
- package/dist/component/2d/gridviewer/index.d.ts +0 -9
- package/dist/component/2d/gridviewer/index1.d.ts +0 -8
- package/dist/component/2d/index.d.ts +0 -9
- package/dist/component/2d/infodiv/index.d.ts +0 -7
- package/dist/component/2d/js/index.d.ts +0 -3
- package/dist/component/2d/js/index.js +0 -59517
- package/dist/component/2d/modelloder.d.ts +0 -3
- package/dist/component/2d/mulifiveiewer/index.d.ts +0 -4
- package/dist/component/2d/navigation/index.d.ts +0 -12
- package/dist/component/2d/navtree/index.d.ts +0 -13
- package/dist/component/2d/tast1/config.d.ts +0 -20
- package/dist/component/2d/tast1/index.d.ts +0 -4
- package/dist/component/2d/thumbnail/VirtualList.d.ts +0 -14
- package/dist/component/2d/thumbnail/index.d.ts +0 -12
- package/dist/component/2d/twoviewer/index.d.ts +0 -19
- package/dist/component/3d/ai/index.d.ts +0 -7
- package/dist/component/3d/atlas.d.ts +0 -31
- package/dist/component/3d/atlasBottomTabs/index.d.ts +0 -19
- package/dist/component/3d/atlasSiderBar/index.d.ts +0 -79
- package/dist/component/3d/auxiliary/index.d.ts +0 -110
- package/dist/component/3d/bottomTabs/index.d.ts +0 -16
- package/dist/component/3d/cardData/index.d.ts +0 -3
- package/dist/component/3d/chartViewer/index.d.ts +0 -12
- package/dist/component/3d/dataset/index.d.ts +0 -3
- package/dist/component/3d/index.d.ts +0 -14
- package/dist/component/3d/lengthViewer/index.d.ts +0 -10
- package/dist/component/3d/modal2DLoader/index.d.ts +0 -11
- package/dist/component/3d/modalLoader/index.d.ts +0 -13
- package/dist/component/3d/pipeline/index.d.ts +0 -83
- package/dist/component/3d/registration/index.d.ts +0 -4
- package/dist/component/3d/sangjiViewer/index.d.ts +0 -6
- package/dist/component/3d/section/index.d.ts +0 -53
- package/dist/component/3d/showreglions/index.d.ts +0 -7
- package/dist/component/3d/sideBar/index.d.ts +0 -73
- package/dist/component/3d/stlLoader/index.d.ts +0 -9
- package/dist/component/3d/swctree/index.d.ts +0 -3
- package/dist/component/3d/tabViewer/index.d.ts +0 -13
- package/dist/component/STAM.d.ts +0 -4
- package/dist/component/common/Button/index.d.ts +0 -45
- package/dist/component/common/Header/index.d.ts +0 -19
- package/dist/component/common/index.d.ts +0 -2
- package/dist/component/index.d.ts +0 -2
- package/dist/component/types/header.d.ts +0 -9
- package/dist/component/types/index.d.ts +0 -1
- package/dist/component/util/CommonFunctions.d.ts +0 -23
- package/dist/component/util/global.d.ts +0 -17
- package/dist/component/util/i18n.d.ts +0 -3
- package/dist/component/util/index.d.ts +0 -2
- package/dist/deflate-1abfb6fb.mjs +0 -12
- package/dist/deflate-8266a99e.js +0 -1
- package/dist/index-07abba5a.js +0 -5024
- package/dist/index-82873a75.mjs +0 -162680
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.mjs +0 -52
- package/dist/jpeg-335c778f.mjs +0 -515
- package/dist/jpeg-f3c7cefc.js +0 -1
- package/dist/lerc-5b9003bf.js +0 -1
- package/dist/lerc-ef873549.mjs +0 -1035
- package/dist/lzw-82d7fc69.mjs +0 -84
- package/dist/lzw-f00e8c8c.js +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/packbits-58fd9c05.js +0 -1
- package/dist/packbits-8b95f4d7.mjs +0 -24
- package/dist/raw-9c0f4034.js +0 -1
- package/dist/raw-c0fe1c20.mjs +0 -9
- package/dist/stories/3Ddata.stories.d.ts +0 -12
- package/dist/stories/3Dlabel.d.ts +0 -4
- package/dist/stories/3Dlabelreglions.d.ts +0 -4
- package/dist/stories/3Dlable.stories.d.ts +0 -12
- package/dist/stories/3Dlablereglions.stories.d.ts +0 -12
- package/dist/stories/3Dneurons.d.ts +0 -4
- package/dist/stories/3Dneurons.stories.d.ts +0 -12
- package/dist/stories/3Dswc.stories.d.ts +0 -12
- package/dist/stories/ArlasViewer.stories.d.ts +0 -12
- package/dist/stories/AtlasViewer.d.ts +0 -3
- package/dist/stories/Button.stories.d.ts +0 -25
- package/dist/stories/Distribution.stories.d.ts +0 -11
- package/dist/stories/Header.stories.d.ts +0 -31
- package/dist/stories/MulfiViewer.stories.d.ts +0 -11
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.stories.d.ts +0 -15
- package/dist/stories/Sangjiviewer.stories.d.ts +0 -14
- package/dist/stories/Soma.d.ts +0 -4
- package/dist/stories/Soma.stories.d.ts +0 -12
- package/dist/stories/Task3D.stories.d.ts +0 -12
- package/dist/stories/Thumbnail.stories.d.ts +0 -25
- package/dist/stories/Vessel.d.ts +0 -4
- package/dist/stories/Vessel.stories.d.ts +0 -12
- package/dist/stories/chartviewer.stories.d.ts +0 -20
- package/dist/stories/lengthviewer.stories.d.ts +0 -17
- package/dist/stories/navtree.stories.d.ts +0 -25
- package/dist/stories/registration.stories.d.ts +0 -12
- package/dist/stories/task3D.d.ts +0 -4
- package/dist/stories/tast1.stories.d.ts +0 -11
- package/dist/stories/twoview.stories.d.ts +0 -31
- package/dist/style.css +0 -1
- package/dist/webimage-affb95d1.mjs +0 -19
- package/dist/webimage-bc81928d.js +0 -1
- package/package-lock.json +0 -30352
package/.storybook/middleware.js
CHANGED
|
@@ -15,9 +15,9 @@ module.exports = function expressMiddleware(router) {
|
|
|
15
15
|
router.use(
|
|
16
16
|
"/app-api/up-api",
|
|
17
17
|
createProxyMiddleware("/app-api/up-api",{
|
|
18
|
-
target: "http://atlas.brainsmatics.org/app-api/up-api/",
|
|
18
|
+
// target: "http://atlas.brainsmatics.org/app-api/up-api/",
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
target: "http://192.168.70.115:3000",
|
|
21
21
|
pathRewrite: {
|
|
22
22
|
'^/app-api/up-api': '', // 将路径中的 /api 重写为空字符串
|
|
23
23
|
},
|
package/Dockerfile
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
# 使用 Node.js 18 的 Alpine 版本作为基础镜像
|
|
2
|
-
FROM node:
|
|
2
|
+
FROM node:19-alpine
|
|
3
3
|
|
|
4
4
|
# 设置工作目录
|
|
5
5
|
WORKDIR /app
|
|
6
6
|
|
|
7
7
|
# 复制 package.json 和 yarn.lock
|
|
8
|
-
COPY package.json
|
|
8
|
+
COPY package.json .
|
|
9
9
|
|
|
10
10
|
# 安装项目依赖
|
|
11
11
|
RUN yarn install --frozen-lockfile --ignore-scripts
|
|
12
12
|
# 复制项目文件
|
|
13
|
-
COPY . .
|
|
14
13
|
|
|
15
14
|
# 暴露应用运行的端口
|
|
16
15
|
EXPOSE 6006
|
|
17
16
|
|
|
18
17
|
# 启动应用
|
|
19
|
-
CMD ["yarn", "run", "storybook"]
|
|
18
|
+
# CMD ["yarn", "run", "storybook"]
|
package/docker-compose.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brainsmatics",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.50",
|
|
4
4
|
"description": "brainsmatics",
|
|
5
5
|
"author": "ygwang",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,23 +15,30 @@
|
|
|
15
15
|
"react-dom": ">=18.0.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@ant-design/x": "^1.1.0",
|
|
18
19
|
"@babel/preset-react": "7.22.15",
|
|
19
20
|
"@rollup/plugin-typescript": "11.1.5",
|
|
20
21
|
"@storybook/addon-console": "^3.0.0",
|
|
21
22
|
"@types/echarts": "^4.9.22",
|
|
22
23
|
"@types/three": "0.157.2",
|
|
23
|
-
"antd": "^5.
|
|
24
|
+
"antd": "^5.24.6",
|
|
24
25
|
"cross-env": "7.0.3",
|
|
26
|
+
"dompurify": "^3.2.5",
|
|
25
27
|
"echarts": "^5.5.1",
|
|
26
28
|
"geotiff": "^2.1.3",
|
|
27
29
|
"http-proxy-middleware": "^2.0.6",
|
|
28
30
|
"i18next": "^24.0.4",
|
|
31
|
+
"markdown-it": "^14.1.0",
|
|
29
32
|
"react": "18.x",
|
|
30
33
|
"react-contexify": "^6.0.0",
|
|
31
34
|
"react-dom": "18.x",
|
|
32
35
|
"react-i18next": "^15.1.3",
|
|
36
|
+
"react-markdown": "^10.1.0",
|
|
33
37
|
"react-scroll": "^1.9.0",
|
|
38
|
+
"react-syntax-highlighter": "^15.6.1",
|
|
34
39
|
"react-window": "^1.8.9",
|
|
40
|
+
"rehype-raw": "^7.0.0",
|
|
41
|
+
"remark-gfm": "^4.0.1",
|
|
35
42
|
"socket.io-client": "^4.8.1",
|
|
36
43
|
"three": "0.157.0",
|
|
37
44
|
"tiff": "^6.0.0",
|
package/dist/App.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function l(o,e){let t=o.length-e,r=0;do{for(let a=e;a>0;a--)o[r+e]+=o[r],r++;t-=e}while(t>0)}function d(o,e,t){let r=0,a=o.length;const i=a/t;for(;a>e;){for(let n=e;n>0;--n)o[r+e]+=o[r],++r;a-=e}const s=o.slice();for(let n=0;n<i;++n)for(let c=0;c<t;++c)o[t*n+c]=s[(t-c-1)*i+n]}function f(o,e,t,r,a,i){if(!e||e===1)return o;for(let c=0;c<a.length;++c){if(a[c]%8!==0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(a[c]!==a[0])throw new Error("When decoding with predictor, all samples must have the same size.")}const s=a[0]/8,n=i===2?1:a.length;for(let c=0;c<r&&!(c*n*t*s>=o.byteLength);++c){let h;if(e===2){switch(a[0]){case 8:h=new Uint8Array(o,c*n*t*s,n*t*s);break;case 16:h=new Uint16Array(o,c*n*t*s,n*t*s/2);break;case 32:h=new Uint32Array(o,c*n*t*s,n*t*s/4);break;default:throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`)}l(h,n)}else e===3&&(h=new Uint8Array(o,c*n*t*s,n*t*s),d(h,n,s))}return o}class g{async decode(e,t){const r=await this.decodeBlock(t),a=e.Predictor||1;if(a!==1){const i=!e.StripOffsets,s=i?e.TileWidth:e.ImageWidth,n=i?e.TileLength:e.RowsPerStrip||e.ImageLength;return f(r,a,s,n,e.BitsPerSample,e.PlanarConfiguration)}return r}}exports.BaseDecoder=g;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
function l(o, n) {
|
|
2
|
-
let t = o.length - n, r = 0;
|
|
3
|
-
do {
|
|
4
|
-
for (let a = n; a > 0; a--)
|
|
5
|
-
o[r + n] += o[r], r++;
|
|
6
|
-
t -= n;
|
|
7
|
-
} while (t > 0);
|
|
8
|
-
}
|
|
9
|
-
function d(o, n, t) {
|
|
10
|
-
let r = 0, a = o.length;
|
|
11
|
-
const i = a / t;
|
|
12
|
-
for (; a > n; ) {
|
|
13
|
-
for (let e = n; e > 0; --e)
|
|
14
|
-
o[r + n] += o[r], ++r;
|
|
15
|
-
a -= n;
|
|
16
|
-
}
|
|
17
|
-
const s = o.slice();
|
|
18
|
-
for (let e = 0; e < i; ++e)
|
|
19
|
-
for (let c = 0; c < t; ++c)
|
|
20
|
-
o[t * e + c] = s[(t - c - 1) * i + e];
|
|
21
|
-
}
|
|
22
|
-
function f(o, n, t, r, a, i) {
|
|
23
|
-
if (!n || n === 1)
|
|
24
|
-
return o;
|
|
25
|
-
for (let c = 0; c < a.length; ++c) {
|
|
26
|
-
if (a[c] % 8 !== 0)
|
|
27
|
-
throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");
|
|
28
|
-
if (a[c] !== a[0])
|
|
29
|
-
throw new Error("When decoding with predictor, all samples must have the same size.");
|
|
30
|
-
}
|
|
31
|
-
const s = a[0] / 8, e = i === 2 ? 1 : a.length;
|
|
32
|
-
for (let c = 0; c < r && !(c * e * t * s >= o.byteLength); ++c) {
|
|
33
|
-
let h;
|
|
34
|
-
if (n === 2) {
|
|
35
|
-
switch (a[0]) {
|
|
36
|
-
case 8:
|
|
37
|
-
h = new Uint8Array(
|
|
38
|
-
o,
|
|
39
|
-
c * e * t * s,
|
|
40
|
-
e * t * s
|
|
41
|
-
);
|
|
42
|
-
break;
|
|
43
|
-
case 16:
|
|
44
|
-
h = new Uint16Array(
|
|
45
|
-
o,
|
|
46
|
-
c * e * t * s,
|
|
47
|
-
e * t * s / 2
|
|
48
|
-
);
|
|
49
|
-
break;
|
|
50
|
-
case 32:
|
|
51
|
-
h = new Uint32Array(
|
|
52
|
-
o,
|
|
53
|
-
c * e * t * s,
|
|
54
|
-
e * t * s / 4
|
|
55
|
-
);
|
|
56
|
-
break;
|
|
57
|
-
default:
|
|
58
|
-
throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`);
|
|
59
|
-
}
|
|
60
|
-
l(h, e);
|
|
61
|
-
} else
|
|
62
|
-
n === 3 && (h = new Uint8Array(
|
|
63
|
-
o,
|
|
64
|
-
c * e * t * s,
|
|
65
|
-
e * t * s
|
|
66
|
-
), d(h, e, s));
|
|
67
|
-
}
|
|
68
|
-
return o;
|
|
69
|
-
}
|
|
70
|
-
class g {
|
|
71
|
-
async decode(n, t) {
|
|
72
|
-
const r = await this.decodeBlock(t), a = n.Predictor || 1;
|
|
73
|
-
if (a !== 1) {
|
|
74
|
-
const i = !n.StripOffsets, s = i ? n.TileWidth : n.ImageWidth, e = i ? n.TileLength : n.RowsPerStrip || n.ImageLength;
|
|
75
|
-
return f(
|
|
76
|
-
r,
|
|
77
|
-
a,
|
|
78
|
-
s,
|
|
79
|
-
e,
|
|
80
|
-
n.BitsPerSample,
|
|
81
|
-
n.PlanarConfiguration
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
return r;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
export {
|
|
88
|
-
g as B
|
|
89
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const config: {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
z: number;
|
|
5
|
-
};
|
|
6
|
-
export declare const rotate: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
z: number;
|
|
10
|
-
};
|
|
11
|
-
export declare const zif = true;
|
|
12
|
-
export declare const distribution = true;
|
|
13
|
-
export declare const items: {
|
|
14
|
-
label: string;
|
|
15
|
-
key: string;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const menu: {
|
|
18
|
-
label: string;
|
|
19
|
-
key: string;
|
|
20
|
-
}[];
|
|
21
|
-
export declare const ZifData: {
|
|
22
|
-
Width: number;
|
|
23
|
-
Height: number;
|
|
24
|
-
voxelResolution: number;
|
|
25
|
-
Coronal: {
|
|
26
|
-
count: number;
|
|
27
|
-
zif_start: string;
|
|
28
|
-
zif_end: string;
|
|
29
|
-
};
|
|
30
|
-
Sagittal: {
|
|
31
|
-
count: number;
|
|
32
|
-
zif_start: string;
|
|
33
|
-
zif_end: string;
|
|
34
|
-
};
|
|
35
|
-
Horizontal: {
|
|
36
|
-
count: number;
|
|
37
|
-
zif_start: string;
|
|
38
|
-
zif_end: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.css';
|
|
3
|
-
declare const GridViewer: ({ orgX, orgY, ZifData, setMouse }: {
|
|
4
|
-
orgX: number;
|
|
5
|
-
orgY: number;
|
|
6
|
-
ZifData: any;
|
|
7
|
-
setMouse: React.Dispatch<React.SetStateAction<number[]>>;
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default GridViewer;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.css";
|
|
3
|
-
declare const GridViewer: React.MemoExoticComponent<({ isGridViewer, setMouse, ZifData }: {
|
|
4
|
-
isGridViewer: boolean;
|
|
5
|
-
setMouse: React.Dispatch<React.SetStateAction<number[]>>;
|
|
6
|
-
ZifData: any;
|
|
7
|
-
}) => React.JSX.Element | null>;
|
|
8
|
-
export default GridViewer;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { default as GridViewer } from "./gridviewer";
|
|
2
|
-
export { default as NavTree } from "./navtree";
|
|
3
|
-
export { default as NaviGation } from "./navigation";
|
|
4
|
-
export { default as InfoDiv } from "./infodiv";
|
|
5
|
-
export { default as TwoViewer } from "./twoviewer";
|
|
6
|
-
export { default as Thumbnail } from "./thumbnail";
|
|
7
|
-
export { default as MulfiViewer } from "./mulifiveiewer";
|
|
8
|
-
export { default as Distribution } from "./distribution";
|
|
9
|
-
export { default as Z } from "./js/index.js";
|