brainsmatics 1.0.52 → 1.0.55
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/aichat/index.d.ts +6 -0
- package/dist/component/3d/atlas.d.ts +31 -0
- package/dist/component/3d/atlasBottomTabs/index.d.ts +19 -0
- package/dist/component/3d/atlasSiderBar/index.d.ts +79 -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 +14 -0
- package/dist/component/3d/inputgrey/index.d.ts +3 -0
- package/dist/component/3d/lengthViewer/index.d.ts +10 -0
- package/dist/component/3d/markdown/index.d.ts +6 -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-3e10bfac.mjs +12 -0
- package/dist/deflate-e0de6721.js +1 -0
- package/dist/index-0490899a.mjs +206752 -0
- package/dist/index-a2f68ec8.js +5108 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +52 -0
- package/dist/jpeg-335c778f.mjs +515 -0
- package/dist/jpeg-f3c7cefc.js +1 -0
- package/dist/lerc-2983f4d6.mjs +1035 -0
- package/dist/lerc-5de929d5.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 +32 -0
- package/dist/stories/Iputgrey.stories.d.ts +12 -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,31 @@
|
|
|
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
|
+
atlasOntology: never[];
|
|
22
|
+
atlasColormap?: React.MutableRefObject<any>;
|
|
23
|
+
resourceTab: string[];
|
|
24
|
+
toolTab: string[];
|
|
25
|
+
ScaleNum: number;
|
|
26
|
+
lang?: string;
|
|
27
|
+
home?: string;
|
|
28
|
+
ServerUrl?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const Atlas: React.FC<AtlasProps>;
|
|
31
|
+
export default Atlas;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { TrackballControls } from "three/examples/jsm/controls/TrackballControls";
|
|
3
|
+
import "./index.css";
|
|
4
|
+
import { BaseOptionType, DefaultOptionType } from "antd/es/select";
|
|
5
|
+
interface tabsProps {
|
|
6
|
+
t: any;
|
|
7
|
+
controls: React.MutableRefObject<TrackballControls>;
|
|
8
|
+
setUpdatePage: React.Dispatch<React.SetStateAction<{}>>;
|
|
9
|
+
setShowSettingModal: React.Dispatch<React.SetStateAction<boolean>>;
|
|
10
|
+
il8n: any;
|
|
11
|
+
auxRef: React.MutableRefObject<any>;
|
|
12
|
+
activetabIndex: React.MutableRefObject<number>;
|
|
13
|
+
index: boolean;
|
|
14
|
+
home?: string;
|
|
15
|
+
Selectoptions: (BaseOptionType | DefaultOptionType)[];
|
|
16
|
+
setFormshow: React.Dispatch<React.SetStateAction<boolean>>;
|
|
17
|
+
}
|
|
18
|
+
declare const AtlasBottomTabs: React.FC<tabsProps>;
|
|
19
|
+
export default AtlasBottomTabs;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import './index.css';
|
|
3
|
+
import type { DataNode } from 'antd/es/tree';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
import { BaseOptionType, DefaultOptionType } from "antd/es/select";
|
|
6
|
+
interface dataType extends DataNode {
|
|
7
|
+
name: string;
|
|
8
|
+
open: boolean;
|
|
9
|
+
path: string;
|
|
10
|
+
color: string;
|
|
11
|
+
children: any;
|
|
12
|
+
nameflag?: string;
|
|
13
|
+
fullname: string;
|
|
14
|
+
x: string;
|
|
15
|
+
y: string;
|
|
16
|
+
z: string;
|
|
17
|
+
cname: string;
|
|
18
|
+
}
|
|
19
|
+
interface SideBarProps {
|
|
20
|
+
regionData: string;
|
|
21
|
+
treeDatas: dataType[];
|
|
22
|
+
fbxTreeDatas?: dataType[];
|
|
23
|
+
vesselObj: React.MutableRefObject<{}>;
|
|
24
|
+
offset_factor_R?: React.MutableRefObject<number>;
|
|
25
|
+
type: string;
|
|
26
|
+
leftTreeRef?: React.RefObject<HTMLDivElement>;
|
|
27
|
+
baozhaRef?: React.RefObject<HTMLDivElement>;
|
|
28
|
+
needBaozha?: boolean;
|
|
29
|
+
offset_factor?: number;
|
|
30
|
+
step_offset?: React.MutableRefObject<number>;
|
|
31
|
+
renderer: THREE.WebGLRenderer;
|
|
32
|
+
dataUrl?: React.MutableRefObject<string>;
|
|
33
|
+
axis_font: React.MutableRefObject<THREE.Mesh[]>;
|
|
34
|
+
t: any;
|
|
35
|
+
title?: string;
|
|
36
|
+
json_name?: string;
|
|
37
|
+
setdatum?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
38
|
+
ref?: any;
|
|
39
|
+
StepsCount?: number;
|
|
40
|
+
showimage?: boolean;
|
|
41
|
+
checkItems: string[];
|
|
42
|
+
setCheckItems: React.Dispatch<React.SetStateAction<string[]>>;
|
|
43
|
+
outflag?: boolean;
|
|
44
|
+
clickPoint: React.MutableRefObject<THREE.Vector3>;
|
|
45
|
+
setendPoint?: React.Dispatch<React.SetStateAction<THREE.Vector3>>;
|
|
46
|
+
automaticGroup?: React.MutableRefObject<string[]>;
|
|
47
|
+
mode: number;
|
|
48
|
+
axon_check?: Record<string, {
|
|
49
|
+
up: string[];
|
|
50
|
+
down: string[];
|
|
51
|
+
soma: string[];
|
|
52
|
+
axon: string[];
|
|
53
|
+
id: number;
|
|
54
|
+
}>;
|
|
55
|
+
swcnameMesh?: React.MutableRefObject<{}>;
|
|
56
|
+
updatePage?: {};
|
|
57
|
+
childRef?: React.MutableRefObject<undefined>;
|
|
58
|
+
setEchartValue?: React.Dispatch<React.SetStateAction<string>>;
|
|
59
|
+
echartValue?: string;
|
|
60
|
+
auxRef?: React.MutableRefObject<any>;
|
|
61
|
+
PointShow?: React.MutableRefObject<{
|
|
62
|
+
start: boolean;
|
|
63
|
+
end: boolean;
|
|
64
|
+
start_color: string;
|
|
65
|
+
}>;
|
|
66
|
+
tasktype: string;
|
|
67
|
+
swclist?: string[];
|
|
68
|
+
metadata?: boolean;
|
|
69
|
+
resourceTab?: string[];
|
|
70
|
+
atlasData?: string;
|
|
71
|
+
setSelected?: React.Dispatch<React.SetStateAction<string[]>>;
|
|
72
|
+
Selected?: string[];
|
|
73
|
+
Selectoptions?: (BaseOptionType | DefaultOptionType)[];
|
|
74
|
+
setFormshow?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
75
|
+
formshow?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export declare let sphereflag: boolean;
|
|
78
|
+
declare const AtlasSideBar: React.FC<SideBarProps>;
|
|
79
|
+
export default AtlasSideBar;
|
|
@@ -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,14 @@
|
|
|
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 AtlasSideBar } from "./atlasSiderBar";
|
|
12
|
+
export { default as AtlasBottomTabs } from "./atlasBottomTabs";
|
|
13
|
+
export { default as Carddata } from "./cardData";
|
|
14
|
+
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;
|