brainsmatics 1.0.38 → 1.0.39
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/dist/App.d.ts +4 -0
- package/dist/basedecoder-0503cc54.js +1 -0
- package/dist/basedecoder-11034ec6.mjs +89 -0
- package/dist/component/2d/config.d.ts +40 -0
- package/dist/component/2d/contextmenu/ContextMenuX.d.ts +3 -0
- package/dist/component/2d/distribution/index.d.ts +4 -0
- package/dist/component/2d/gridviewer/index.d.ts +9 -0
- package/dist/component/2d/gridviewer/index1.d.ts +8 -0
- package/dist/component/2d/index.d.ts +9 -0
- package/dist/component/2d/infodiv/index.d.ts +7 -0
- package/dist/component/2d/modelloder.d.ts +3 -0
- package/dist/component/2d/mulifiveiewer/index.d.ts +4 -0
- package/dist/component/2d/navigation/index.d.ts +12 -0
- package/dist/component/2d/navtree/index.d.ts +13 -0
- package/dist/component/2d/tast1/config.d.ts +20 -0
- package/dist/component/2d/tast1/index.d.ts +4 -0
- package/dist/component/2d/thumbnail/VirtualList.d.ts +14 -0
- package/dist/component/2d/thumbnail/index.d.ts +12 -0
- package/dist/component/2d/twoviewer/index.d.ts +19 -0
- package/dist/component/3d/ai/index.d.ts +7 -0
- package/dist/component/3d/atlas.d.ts +33 -0
- package/dist/component/3d/auxiliary/index.d.ts +110 -0
- package/dist/component/3d/bottomTabs/index.d.ts +16 -0
- package/dist/component/3d/cardData/index.d.ts +3 -0
- package/dist/component/3d/chartViewer/index.d.ts +12 -0
- package/dist/component/3d/dataset/index.d.ts +3 -0
- package/dist/component/3d/index.d.ts +11 -0
- package/dist/component/3d/lengthViewer/index.d.ts +10 -0
- package/dist/component/3d/modal2DLoader/index.d.ts +11 -0
- package/dist/component/3d/modalLoader/index.d.ts +13 -0
- package/dist/component/3d/pipeline/index.d.ts +83 -0
- package/dist/component/3d/registration/index.d.ts +4 -0
- package/dist/component/3d/sangjiViewer/index.d.ts +6 -0
- package/dist/component/3d/section/index.d.ts +53 -0
- package/dist/component/3d/showreglions/index.d.ts +7 -0
- package/dist/component/3d/sideBar/index.d.ts +73 -0
- package/dist/component/3d/stlLoader/index.d.ts +9 -0
- package/dist/component/3d/swctree/index.d.ts +3 -0
- package/dist/component/3d/tabViewer/index.d.ts +13 -0
- package/dist/component/STAM.d.ts +4 -0
- package/dist/component/common/Button/index.d.ts +45 -0
- package/dist/component/common/Header/index.d.ts +19 -0
- package/dist/component/common/index.d.ts +2 -0
- package/dist/component/index.d.ts +2 -0
- package/dist/component/types/header.d.ts +9 -0
- package/dist/component/types/index.d.ts +1 -0
- package/dist/component/util/CommonFunctions.d.ts +23 -0
- package/dist/component/util/global.d.ts +17 -0
- package/dist/component/util/i18n.d.ts +3 -0
- package/dist/component/util/index.d.ts +2 -0
- package/dist/deflate-288f5408.js +1 -0
- package/dist/deflate-9b280ea4.mjs +12 -0
- package/dist/index-2b53a9f8.mjs +158343 -0
- package/dist/index-df7f0eff.js +4864 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +49 -0
- package/dist/jpeg-335c778f.mjs +515 -0
- package/dist/jpeg-f3c7cefc.js +1 -0
- package/dist/lerc-18136f8f.mjs +1035 -0
- package/dist/lerc-ef8d3879.js +1 -0
- package/dist/lzw-82d7fc69.mjs +84 -0
- package/dist/lzw-f00e8c8c.js +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/packbits-58fd9c05.js +1 -0
- package/dist/packbits-8b95f4d7.mjs +24 -0
- package/dist/raw-9c0f4034.js +1 -0
- package/dist/raw-c0fe1c20.mjs +9 -0
- package/dist/stories/3Ddata.stories.d.ts +12 -0
- package/dist/stories/3Dlabel.d.ts +4 -0
- package/dist/stories/3Dlabelreglions.d.ts +4 -0
- package/dist/stories/3Dlable.stories.d.ts +12 -0
- package/dist/stories/3Dlablereglions.stories.d.ts +12 -0
- package/dist/stories/3Dneurons.d.ts +4 -0
- package/dist/stories/3Dneurons.stories.d.ts +12 -0
- package/dist/stories/3Dswc.stories.d.ts +12 -0
- package/dist/stories/ArlasViewer.stories.d.ts +12 -0
- package/dist/stories/AtlasViewer.d.ts +3 -0
- package/dist/stories/Button.stories.d.ts +25 -0
- package/dist/stories/Distribution.stories.d.ts +11 -0
- package/dist/stories/Header.stories.d.ts +31 -0
- package/dist/stories/MulfiViewer.stories.d.ts +11 -0
- package/dist/stories/Page.d.ts +3 -0
- package/dist/stories/Page.stories.d.ts +15 -0
- package/dist/stories/Sangjiviewer.stories.d.ts +14 -0
- package/dist/stories/Soma.d.ts +4 -0
- package/dist/stories/Soma.stories.d.ts +12 -0
- package/dist/stories/Task3D.stories.d.ts +12 -0
- package/dist/stories/Thumbnail.stories.d.ts +25 -0
- package/dist/stories/Vessel.d.ts +4 -0
- package/dist/stories/Vessel.stories.d.ts +12 -0
- package/dist/stories/chartviewer.stories.d.ts +20 -0
- package/dist/stories/lengthviewer.stories.d.ts +17 -0
- package/dist/stories/navtree.stories.d.ts +25 -0
- package/dist/stories/registration.stories.d.ts +12 -0
- package/dist/stories/task3D.d.ts +4 -0
- package/dist/stories/tast1.stories.d.ts +11 -0
- package/dist/stories/twoview.stories.d.ts +31 -0
- package/dist/style.css +1 -0
- package/dist/webimage-affb95d1.mjs +19 -0
- package/dist/webimage-bc81928d.js +1 -0
- package/package.json +1 -1
package/dist/App.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
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;
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './index.css';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const NaviGation: React.MemoExoticComponent<({ CurrentLevel, fbxname, threeview, TotalLevel, data_path, setCurrentLevel, Z }: {
|
|
4
|
+
CurrentLevel: number;
|
|
5
|
+
fbxname: string;
|
|
6
|
+
threeview?: string | undefined;
|
|
7
|
+
TotalLevel: number;
|
|
8
|
+
data_path: string;
|
|
9
|
+
setCurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
10
|
+
Z: any;
|
|
11
|
+
}) => React.JSX.Element>;
|
|
12
|
+
export default NaviGation;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
declare const NavTree: React.MemoExoticComponent<({ data_path, json, fbxname, layerxyz, setfbxname, CurrentLevel, setCurrentLevel, Z, }: {
|
|
4
|
+
data_path: string;
|
|
5
|
+
json: string;
|
|
6
|
+
fbxname: string;
|
|
7
|
+
layerxyz: string;
|
|
8
|
+
CurrentLevel: number;
|
|
9
|
+
setCurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
10
|
+
setfbxname: React.Dispatch<React.SetStateAction<string>>;
|
|
11
|
+
Z: any;
|
|
12
|
+
}) => React.JSX.Element>;
|
|
13
|
+
export default NavTree;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const ZifData: {
|
|
2
|
+
Width: number;
|
|
3
|
+
Height: number;
|
|
4
|
+
voxelResolution: number;
|
|
5
|
+
Coronal: {
|
|
6
|
+
count: number;
|
|
7
|
+
zif_start: string;
|
|
8
|
+
zif_end: string;
|
|
9
|
+
};
|
|
10
|
+
Sagittal: {
|
|
11
|
+
count: number;
|
|
12
|
+
zif_start: string;
|
|
13
|
+
zif_end: string;
|
|
14
|
+
};
|
|
15
|
+
Horizontal: {
|
|
16
|
+
count: number;
|
|
17
|
+
zif_start: string;
|
|
18
|
+
zif_end: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
declare const VirtualList: ({ items, layerxyz, itemDimensions, itemCount, CurrentLevel, setCurrentLevel, }: {
|
|
4
|
+
items: string[];
|
|
5
|
+
layerxyz: string;
|
|
6
|
+
itemDimensions: {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
itemCount: number;
|
|
11
|
+
CurrentLevel: number;
|
|
12
|
+
setCurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
13
|
+
}) => React.JSX.Element;
|
|
14
|
+
export default VirtualList;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./index.css";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const Thumbnail: React.MemoExoticComponent<({ data_path, layerxyz, TotalLevel, CurrentLevel, setCurrentLevel, isListVisible, setListVisible, }: {
|
|
4
|
+
data_path: string;
|
|
5
|
+
layerxyz: string;
|
|
6
|
+
TotalLevel: number;
|
|
7
|
+
CurrentLevel: number;
|
|
8
|
+
setCurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
9
|
+
isListVisible: boolean;
|
|
10
|
+
setListVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
+
}) => React.JSX.Element>;
|
|
12
|
+
export default Thumbnail;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
declare const TwoViewer: React.MemoExoticComponent<({ data_path, layer, CurrentLevel, isListVisible, setListVisible, isGridViewer, setGridViewer, is3DViewer, set3DViewer, ZifData, fbxname, Z, threeview, setCurrentLevel, }: {
|
|
4
|
+
data_path: string;
|
|
5
|
+
layer: string;
|
|
6
|
+
CurrentLevel: number;
|
|
7
|
+
isListVisible: boolean;
|
|
8
|
+
setListVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
isGridViewer: boolean;
|
|
10
|
+
setGridViewer: React.Dispatch<React.SetStateAction<boolean>>;
|
|
11
|
+
is3DViewer: boolean;
|
|
12
|
+
set3DViewer: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
+
setCurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
14
|
+
ZifData: any;
|
|
15
|
+
fbxname: string;
|
|
16
|
+
Z: any;
|
|
17
|
+
threeview?: string | undefined;
|
|
18
|
+
}) => React.JSX.Element>;
|
|
19
|
+
export default TwoViewer;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DataNode } from "antd/es/tree";
|
|
3
|
+
import "../util/i18n";
|
|
4
|
+
interface dataType extends DataNode {
|
|
5
|
+
name: string;
|
|
6
|
+
open: boolean;
|
|
7
|
+
path: string;
|
|
8
|
+
color: string;
|
|
9
|
+
children: any;
|
|
10
|
+
nameflag?: string;
|
|
11
|
+
fullname: string;
|
|
12
|
+
x: string;
|
|
13
|
+
y: string;
|
|
14
|
+
z: string;
|
|
15
|
+
cname: string;
|
|
16
|
+
}
|
|
17
|
+
interface AtlasProps {
|
|
18
|
+
atlasTopography: string;
|
|
19
|
+
cerebralVessels?: dataType[];
|
|
20
|
+
datumMarks?: never[];
|
|
21
|
+
nodeDistribution?: never[];
|
|
22
|
+
atlasOntology: never[];
|
|
23
|
+
atlasColormap?: React.MutableRefObject<any>;
|
|
24
|
+
neuronMorphologies?: never[];
|
|
25
|
+
resourceTab: string[];
|
|
26
|
+
toolTab: string[];
|
|
27
|
+
ScaleNum: number;
|
|
28
|
+
lang?: string;
|
|
29
|
+
home?: string;
|
|
30
|
+
ServerUrl?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const Atlas: React.FC<AtlasProps>;
|
|
33
|
+
export default Atlas;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { TrackballControls } from "three/examples/jsm/controls/TrackballControls";
|
|
4
|
+
import "./index.css";
|
|
5
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
6
|
+
interface AuxiliaryProps {
|
|
7
|
+
regionData: string;
|
|
8
|
+
setoffset_factor: React.Dispatch<React.SetStateAction<number>>;
|
|
9
|
+
baozhaRef: React.RefObject<HTMLDivElement>;
|
|
10
|
+
t?: any;
|
|
11
|
+
ref?: any;
|
|
12
|
+
hrefStr: string;
|
|
13
|
+
leftTreeRef: React.RefObject<HTMLDivElement>;
|
|
14
|
+
centerRef: React.RefObject<HTMLDivElement>;
|
|
15
|
+
angleRef: React.MutableRefObject<string>;
|
|
16
|
+
jiaoduRef: React.MutableRefObject<string>;
|
|
17
|
+
mouseflag: React.MutableRefObject<boolean>;
|
|
18
|
+
renderer: THREE.WebGLRenderer;
|
|
19
|
+
controls: React.MutableRefObject<TrackballControls>;
|
|
20
|
+
offset_factor_R: React.MutableRefObject<number>;
|
|
21
|
+
menutagShow: boolean;
|
|
22
|
+
startselect: React.MutableRefObject<boolean>;
|
|
23
|
+
linemeshs_jing: React.MutableRefObject<THREE.Line>;
|
|
24
|
+
points: React.MutableRefObject<any[]>;
|
|
25
|
+
points2: React.MutableRefObject<any[]>;
|
|
26
|
+
setMenuTag: React.Dispatch<React.SetStateAction<any[]>>;
|
|
27
|
+
activetabIndex?: React.MutableRefObject<number>;
|
|
28
|
+
fetchCoordinateFunc: React.MutableRefObject<(point: THREE.Vector3) => THREE.Vector3>;
|
|
29
|
+
material: React.MutableRefObject<THREE.RawShaderMaterial>;
|
|
30
|
+
setShowimage: React.Dispatch<React.SetStateAction<boolean>>;
|
|
31
|
+
childRef: React.MutableRefObject<any>;
|
|
32
|
+
checkItems: string[];
|
|
33
|
+
setoutflag: React.Dispatch<React.SetStateAction<boolean>>;
|
|
34
|
+
outflag: boolean;
|
|
35
|
+
setendPoint: React.Dispatch<React.SetStateAction<THREE.Vector3>>;
|
|
36
|
+
clickPoint: React.MutableRefObject<THREE.Vector3>;
|
|
37
|
+
outflagRef: React.MutableRefObject<boolean>;
|
|
38
|
+
axis_font: React.MutableRefObject<THREE.Mesh[]>;
|
|
39
|
+
setdatum?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
40
|
+
modeChoose: boolean;
|
|
41
|
+
setShowModeChoose: React.Dispatch<React.SetStateAction<boolean>>;
|
|
42
|
+
virusModeValue: React.MutableRefObject<string>;
|
|
43
|
+
setShowTabNums: React.Dispatch<React.SetStateAction<number>>;
|
|
44
|
+
pipelineClickEvent: React.MutableRefObject<any>;
|
|
45
|
+
automaticGroup: React.MutableRefObject<string[]>;
|
|
46
|
+
focusVirusLineItem: string;
|
|
47
|
+
setMenuTagShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
48
|
+
responsefunc: React.MutableRefObject<() => void>;
|
|
49
|
+
mode: number;
|
|
50
|
+
setCheckItems: React.Dispatch<React.SetStateAction<string[]>>;
|
|
51
|
+
setLeftMenuTabIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
52
|
+
updatePage: {};
|
|
53
|
+
swcItem: string;
|
|
54
|
+
axon_check?: Record<string, {
|
|
55
|
+
up: string[];
|
|
56
|
+
down: string[];
|
|
57
|
+
soma: string[];
|
|
58
|
+
axon: string[];
|
|
59
|
+
id: number;
|
|
60
|
+
}>;
|
|
61
|
+
swcnameMesh: React.MutableRefObject<{}>;
|
|
62
|
+
setMode: React.Dispatch<React.SetStateAction<number>>;
|
|
63
|
+
vesselStr: string;
|
|
64
|
+
lableStr: string;
|
|
65
|
+
vesselRef: React.MutableRefObject<undefined>;
|
|
66
|
+
swcRef: React.MutableRefObject<undefined>;
|
|
67
|
+
setShowSettingModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
68
|
+
showSettingModal: boolean;
|
|
69
|
+
fbxTreeDatas: never[];
|
|
70
|
+
composer: EffectComposer;
|
|
71
|
+
setEchartValue: React.Dispatch<React.SetStateAction<string>>;
|
|
72
|
+
echartValue?: string;
|
|
73
|
+
setLuguchecked: React.Dispatch<React.SetStateAction<number>>;
|
|
74
|
+
Luguchecked: number;
|
|
75
|
+
setSectionsInfo: React.Dispatch<React.SetStateAction<{
|
|
76
|
+
gray?: string | undefined;
|
|
77
|
+
brains?: string | undefined;
|
|
78
|
+
top?: number | undefined;
|
|
79
|
+
left?: number | undefined;
|
|
80
|
+
}>>;
|
|
81
|
+
sectionsInfo: {
|
|
82
|
+
gray?: string | undefined;
|
|
83
|
+
brains?: string | undefined;
|
|
84
|
+
top?: number | undefined;
|
|
85
|
+
left?: number | undefined;
|
|
86
|
+
};
|
|
87
|
+
sectionsInfoRef: React.MutableRefObject<{
|
|
88
|
+
gray?: number | undefined;
|
|
89
|
+
brains?: string | undefined;
|
|
90
|
+
top?: number | undefined;
|
|
91
|
+
left?: number | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
gray_value: React.MutableRefObject<any>;
|
|
94
|
+
datum: boolean;
|
|
95
|
+
setGridShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
96
|
+
PointShow: React.MutableRefObject<{
|
|
97
|
+
start: boolean;
|
|
98
|
+
end: boolean;
|
|
99
|
+
start_color: string;
|
|
100
|
+
}>;
|
|
101
|
+
nodeStr: {
|
|
102
|
+
name?: string;
|
|
103
|
+
Lable?: string;
|
|
104
|
+
};
|
|
105
|
+
lefttab: string[];
|
|
106
|
+
righttab: string[];
|
|
107
|
+
atlasData: string;
|
|
108
|
+
}
|
|
109
|
+
declare const Auxiliary: React.FC<AuxiliaryProps>;
|
|
110
|
+
export default Auxiliary;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TrackballControls } from "three/examples/jsm/controls/TrackballControls";
|
|
3
|
+
import "./index.css";
|
|
4
|
+
interface tabsProps {
|
|
5
|
+
t: any;
|
|
6
|
+
controls: React.MutableRefObject<TrackballControls>;
|
|
7
|
+
setUpdatePage: React.Dispatch<React.SetStateAction<{}>>;
|
|
8
|
+
setShowSettingModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
il8n: any;
|
|
10
|
+
auxRef: React.MutableRefObject<any>;
|
|
11
|
+
activetabIndex: React.MutableRefObject<number>;
|
|
12
|
+
index: boolean;
|
|
13
|
+
home?: string;
|
|
14
|
+
}
|
|
15
|
+
declare const BottomTabs: React.FC<tabsProps>;
|
|
16
|
+
export default BottomTabs;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ChartViewer: React.FC<{
|
|
3
|
+
axon_check: any[];
|
|
4
|
+
fbxTreeDatas: any[];
|
|
5
|
+
setLeftMenuTabIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
6
|
+
reset: boolean;
|
|
7
|
+
swcRef: React.MutableRefObject<undefined>;
|
|
8
|
+
setIsChartOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
9
|
+
setChartValue: React.Dispatch<any>;
|
|
10
|
+
setEchartValue: React.Dispatch<React.SetStateAction<string>>;
|
|
11
|
+
}>;
|
|
12
|
+
export default ChartViewer;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as SideBar } from "./sideBar";
|
|
2
|
+
export { default as PipeLine } from "./pipeline";
|
|
3
|
+
export { default as ModalLoader } from "./modalLoader";
|
|
4
|
+
export { default as Auxiliary } from "./auxiliary";
|
|
5
|
+
export { default as Sections } from "./section";
|
|
6
|
+
export { default as StlLoader } from "./stlLoader";
|
|
7
|
+
export { default as Modal2DLoader } from "./modal2DLoader";
|
|
8
|
+
export { default as BottomTabs } from "./bottomTabs";
|
|
9
|
+
export { default as Swctree } from "./swctree";
|
|
10
|
+
export { default as ShowReglions } from "./showreglions";
|
|
11
|
+
export { default as Atlas } from "./atlas";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.css";
|
|
3
|
+
declare const Modal2DLoader: React.MemoExoticComponent<({ currentLevel, totalLevel, layerxyz, is3DViewer, setcurrentLevel, is2DViewer }: {
|
|
4
|
+
totalLevel: number;
|
|
5
|
+
is3DViewer: boolean;
|
|
6
|
+
setcurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
7
|
+
currentLevel: number;
|
|
8
|
+
layerxyz: string;
|
|
9
|
+
is2DViewer: boolean;
|
|
10
|
+
}) => React.JSX.Element>;
|
|
11
|
+
export default Modal2DLoader;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
import './index.css';
|
|
4
|
+
interface LoaderProps {
|
|
5
|
+
regionData: string;
|
|
6
|
+
vesselObj?: React.MutableRefObject<{}>;
|
|
7
|
+
setbbox: React.Dispatch<React.SetStateAction<{
|
|
8
|
+
min: THREE.Vector3;
|
|
9
|
+
max: THREE.Vector3;
|
|
10
|
+
}>>;
|
|
11
|
+
}
|
|
12
|
+
declare const modalLoader: React.FC<LoaderProps>;
|
|
13
|
+
export default modalLoader;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { TrackballControls } from 'three/examples/jsm/controls/TrackballControls';
|
|
4
|
+
import "./index.css";
|
|
5
|
+
interface propsType {
|
|
6
|
+
renderer: THREE.WebGLRenderer;
|
|
7
|
+
controls: React.MutableRefObject<TrackballControls>;
|
|
8
|
+
vesselObj: React.MutableRefObject<{}>;
|
|
9
|
+
currentRef: React.RefObject<HTMLDivElement> | null;
|
|
10
|
+
setHrefStr?: React.Dispatch<React.SetStateAction<string>>;
|
|
11
|
+
angleRef?: React.MutableRefObject<string>;
|
|
12
|
+
jiaoduRef?: React.MutableRefObject<string>;
|
|
13
|
+
mouseflag?: React.MutableRefObject<boolean>;
|
|
14
|
+
menutagShow?: boolean;
|
|
15
|
+
setMenuTagShow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
16
|
+
menuTag?: any[];
|
|
17
|
+
pointDatas: any[];
|
|
18
|
+
datum: boolean;
|
|
19
|
+
axis_font: React.MutableRefObject<THREE.Mesh[]>;
|
|
20
|
+
startselect?: React.MutableRefObject<boolean>;
|
|
21
|
+
linemeshs_jing?: React.MutableRefObject<THREE.Line>;
|
|
22
|
+
points?: React.MutableRefObject<any[]>;
|
|
23
|
+
points2?: React.MutableRefObject<any[]>;
|
|
24
|
+
activetabIndex?: React.MutableRefObject<number>;
|
|
25
|
+
fetchCoordinateFunc?: React.MutableRefObject<(point: THREE.Vector3) => THREE.Vector3>;
|
|
26
|
+
checkItems: string[];
|
|
27
|
+
outflag?: boolean;
|
|
28
|
+
clickPoint: React.MutableRefObject<THREE.Vector3>;
|
|
29
|
+
endPoint: THREE.Vector3;
|
|
30
|
+
setoutflag: React.Dispatch<React.SetStateAction<boolean>>;
|
|
31
|
+
outflagRef: React.MutableRefObject<boolean>;
|
|
32
|
+
setShowModeChoose?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
|
+
virusModeValue: React.MutableRefObject<string>;
|
|
34
|
+
pipelineClickEvent: React.MutableRefObject<any>;
|
|
35
|
+
setFocusVirusLineItem: React.Dispatch<React.SetStateAction<string>>;
|
|
36
|
+
focusVirusLineItem: string;
|
|
37
|
+
responsefunc: React.MutableRefObject<() => void>;
|
|
38
|
+
childRef: React.MutableRefObject<undefined>;
|
|
39
|
+
mode: React.MutableRefObject<number>;
|
|
40
|
+
setUpdatePage: React.Dispatch<React.SetStateAction<{}>>;
|
|
41
|
+
t?: any;
|
|
42
|
+
setSwcItem: React.Dispatch<React.SetStateAction<string>>;
|
|
43
|
+
swcItem: string;
|
|
44
|
+
swcnameMesh: React.MutableRefObject<{}>;
|
|
45
|
+
axon_check?: Record<string, {
|
|
46
|
+
up: string[];
|
|
47
|
+
down: string[];
|
|
48
|
+
soma: string[];
|
|
49
|
+
axon: string[];
|
|
50
|
+
id: number;
|
|
51
|
+
}>;
|
|
52
|
+
automaticGroup: React.MutableRefObject<string[]>;
|
|
53
|
+
setCheckItems: React.Dispatch<React.SetStateAction<string[]>>;
|
|
54
|
+
vesselRef: React.MutableRefObject<undefined>;
|
|
55
|
+
setLableStr: React.Dispatch<React.SetStateAction<string>>;
|
|
56
|
+
setVesselStr: React.Dispatch<React.SetStateAction<string>>;
|
|
57
|
+
vesselStr: string;
|
|
58
|
+
lableStr: string;
|
|
59
|
+
tabIndex: React.MutableRefObject<number>;
|
|
60
|
+
updatePage: {};
|
|
61
|
+
swcRef: React.MutableRefObject<undefined>;
|
|
62
|
+
Luguchecked: number;
|
|
63
|
+
setSectionsInfo: React.Dispatch<React.SetStateAction<{
|
|
64
|
+
gray?: string | undefined;
|
|
65
|
+
brains?: string | undefined;
|
|
66
|
+
top?: number | undefined;
|
|
67
|
+
left?: number | undefined;
|
|
68
|
+
}>>;
|
|
69
|
+
sectionsInfoRef: React.MutableRefObject<{
|
|
70
|
+
gray?: number | undefined;
|
|
71
|
+
brains?: string | undefined;
|
|
72
|
+
top?: number | undefined;
|
|
73
|
+
left?: number | undefined;
|
|
74
|
+
}>;
|
|
75
|
+
gray_value: React.MutableRefObject<any>;
|
|
76
|
+
gridShow: boolean;
|
|
77
|
+
setNodeStr: React.Dispatch<React.SetStateAction<{}>>;
|
|
78
|
+
regionData: string;
|
|
79
|
+
}
|
|
80
|
+
export declare var sphereBig: THREE.Mesh<THREE.SphereGeometry, THREE.MeshPhongMaterial, THREE.Object3DEventMap>;
|
|
81
|
+
export declare var sphereMiddelClick: THREE.Mesh<THREE.ConeGeometry, THREE.MeshPhongMaterial, THREE.Object3DEventMap>;
|
|
82
|
+
declare const PipeLine: React.FC<propsType>;
|
|
83
|
+
export default PipeLine;
|