brainsmatics 1.0.30 → 1.0.32
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 +76 -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 +72 -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-915ed778.js +1 -0
- package/dist/deflate-dcef13aa.mjs +12 -0
- package/dist/index-828f9220.js +4864 -0
- package/dist/index-bd7b35db.mjs +158478 -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-4a479d1d.js +1 -0
- package/dist/lerc-6b3e6adb.mjs +1035 -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/tsconfig.json +0 -1
- package/vite.config.js +1 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { TransformControls } from "three/examples/jsm/controls/TransformControls";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { TrackballControls } from "three/examples/jsm/controls/TrackballControls";
|
|
5
|
+
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer';
|
|
6
|
+
interface positionUpdate {
|
|
7
|
+
positionx: number;
|
|
8
|
+
positiony: number;
|
|
9
|
+
positionz: number;
|
|
10
|
+
}
|
|
11
|
+
interface CubeSliceProps {
|
|
12
|
+
direction: number;
|
|
13
|
+
percentage: number;
|
|
14
|
+
pointMax: THREE.Vector3;
|
|
15
|
+
pointMin: THREE.Vector3;
|
|
16
|
+
color: THREE.Color | number;
|
|
17
|
+
sliceImgNum: number;
|
|
18
|
+
slicePath: string;
|
|
19
|
+
transformControls: React.MutableRefObject<TransformControls>;
|
|
20
|
+
controls: React.MutableRefObject<TrackballControls>;
|
|
21
|
+
handleStateUpdate?: (props: positionUpdate) => void;
|
|
22
|
+
canvas_width: React.MutableRefObject<number>;
|
|
23
|
+
canvas_height: React.MutableRefObject<number>;
|
|
24
|
+
cube_helper: React.MutableRefObject<THREE.Mesh>;
|
|
25
|
+
renderer: THREE.WebGLRenderer;
|
|
26
|
+
showMesh: boolean;
|
|
27
|
+
slice_arbitrary?: React.MutableRefObject<THREE.Mesh>;
|
|
28
|
+
normalVector?: React.MutableRefObject<THREE.Vector3 | null>;
|
|
29
|
+
canMouseMove?: boolean;
|
|
30
|
+
setAngleX: React.Dispatch<React.SetStateAction<number>>;
|
|
31
|
+
setAngleY: React.Dispatch<React.SetStateAction<number>>;
|
|
32
|
+
setAngleZ: React.Dispatch<React.SetStateAction<number>>;
|
|
33
|
+
gray_value: React.MutableRefObject<any>;
|
|
34
|
+
setSectionsInfo: React.Dispatch<React.SetStateAction<{
|
|
35
|
+
gray?: string | undefined;
|
|
36
|
+
brains?: string | undefined;
|
|
37
|
+
left?: number | undefined;
|
|
38
|
+
top?: number | undefined;
|
|
39
|
+
}>>;
|
|
40
|
+
sectionsInfoRef: React.MutableRefObject<{
|
|
41
|
+
gray?: number | undefined;
|
|
42
|
+
brains?: string | undefined;
|
|
43
|
+
top?: number | undefined;
|
|
44
|
+
left?: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
sectionPointRef: React.MutableRefObject<THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>>;
|
|
47
|
+
composer: EffectComposer;
|
|
48
|
+
menutagShowRef: React.MutableRefObject<boolean>;
|
|
49
|
+
tabIndex: number;
|
|
50
|
+
settransformControlsType?: React.Dispatch<React.SetStateAction<number>>;
|
|
51
|
+
}
|
|
52
|
+
declare const Sections: React.FC<CubeSliceProps>;
|
|
53
|
+
export default Sections;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import './index.css';
|
|
3
|
+
import type { DataNode } from 'antd/es/tree';
|
|
4
|
+
import * as THREE from 'three';
|
|
5
|
+
interface dataType extends DataNode {
|
|
6
|
+
name: string;
|
|
7
|
+
open: boolean;
|
|
8
|
+
path: string;
|
|
9
|
+
color: string;
|
|
10
|
+
children: any;
|
|
11
|
+
nameflag?: string;
|
|
12
|
+
fullname: string;
|
|
13
|
+
x: string;
|
|
14
|
+
y: string;
|
|
15
|
+
z: string;
|
|
16
|
+
cname: string;
|
|
17
|
+
}
|
|
18
|
+
interface SideBarProps {
|
|
19
|
+
regionData: string;
|
|
20
|
+
treeDatas: dataType[];
|
|
21
|
+
fbxTreeDatas?: dataType[];
|
|
22
|
+
vesselObj: React.MutableRefObject<{}>;
|
|
23
|
+
offset_factor_R?: React.MutableRefObject<number>;
|
|
24
|
+
type: string;
|
|
25
|
+
leftTreeRef?: React.RefObject<HTMLDivElement>;
|
|
26
|
+
baozhaRef?: React.RefObject<HTMLDivElement>;
|
|
27
|
+
needBaozha?: boolean;
|
|
28
|
+
offset_factor?: number;
|
|
29
|
+
step_offset?: React.MutableRefObject<number>;
|
|
30
|
+
renderer: THREE.WebGLRenderer;
|
|
31
|
+
dataUrl?: React.MutableRefObject<string>;
|
|
32
|
+
axis_font: React.MutableRefObject<THREE.Mesh[]>;
|
|
33
|
+
t: any;
|
|
34
|
+
title?: string;
|
|
35
|
+
json_name?: string;
|
|
36
|
+
setdatum?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
37
|
+
ref?: any;
|
|
38
|
+
StepsCount?: number;
|
|
39
|
+
showimage?: boolean;
|
|
40
|
+
checkItems: string[];
|
|
41
|
+
setCheckItems: React.Dispatch<React.SetStateAction<string[]>>;
|
|
42
|
+
outflag?: boolean;
|
|
43
|
+
clickPoint: React.MutableRefObject<THREE.Vector3>;
|
|
44
|
+
setendPoint?: React.Dispatch<React.SetStateAction<THREE.Vector3>>;
|
|
45
|
+
automaticGroup?: React.MutableRefObject<string[]>;
|
|
46
|
+
mode: number;
|
|
47
|
+
axon_check?: Record<string, {
|
|
48
|
+
up: string[];
|
|
49
|
+
down: string[];
|
|
50
|
+
soma: string[];
|
|
51
|
+
axon: string[];
|
|
52
|
+
id: number;
|
|
53
|
+
}>;
|
|
54
|
+
swcnameMesh?: React.MutableRefObject<{}>;
|
|
55
|
+
updatePage?: {};
|
|
56
|
+
childRef?: React.MutableRefObject<undefined>;
|
|
57
|
+
setEchartValue?: React.Dispatch<React.SetStateAction<string>>;
|
|
58
|
+
echartValue?: string;
|
|
59
|
+
auxRef?: React.MutableRefObject<any>;
|
|
60
|
+
PointShow?: React.MutableRefObject<{
|
|
61
|
+
start: boolean;
|
|
62
|
+
end: boolean;
|
|
63
|
+
start_color: string;
|
|
64
|
+
}>;
|
|
65
|
+
tasktype: string;
|
|
66
|
+
swclist?: string[];
|
|
67
|
+
metadata?: boolean;
|
|
68
|
+
resourceTab?: string[];
|
|
69
|
+
}
|
|
70
|
+
export declare let sphereflag: boolean;
|
|
71
|
+
declare const SideBar: React.FC<SideBarProps>;
|
|
72
|
+
export default SideBar;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import "./index.css";
|
|
3
|
+
interface TabViewerProps {
|
|
4
|
+
className: string;
|
|
5
|
+
Name: string;
|
|
6
|
+
t: any;
|
|
7
|
+
data_change: any;
|
|
8
|
+
data_c: any;
|
|
9
|
+
col: string[];
|
|
10
|
+
row: string[];
|
|
11
|
+
}
|
|
12
|
+
declare const TabViewer: React.ForwardRefExoticComponent<TabViewerProps & React.RefAttributes<unknown>>;
|
|
13
|
+
export default TabViewer;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import './index.css';
|
|
4
|
+
/**
|
|
5
|
+
* Primary UI component for user interaction
|
|
6
|
+
*/
|
|
7
|
+
interface buttonProps {
|
|
8
|
+
primary?: boolean;
|
|
9
|
+
backgroundColor?: any;
|
|
10
|
+
size?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
export declare const Button: {
|
|
15
|
+
(props: buttonProps): React.JSX.Element;
|
|
16
|
+
propTypes: {
|
|
17
|
+
/**
|
|
18
|
+
* Is this the principal call to action on the page?
|
|
19
|
+
*/
|
|
20
|
+
primary: PropTypes.Requireable<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* What background color to use
|
|
23
|
+
*/
|
|
24
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
25
|
+
/**
|
|
26
|
+
* How large should the button be?
|
|
27
|
+
*/
|
|
28
|
+
size: PropTypes.Requireable<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Button contents
|
|
31
|
+
*/
|
|
32
|
+
label: PropTypes.Validator<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Optional click handler
|
|
35
|
+
*/
|
|
36
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
|
+
};
|
|
38
|
+
defaultProps: {
|
|
39
|
+
backgroundColor: null;
|
|
40
|
+
primary: boolean;
|
|
41
|
+
size: string;
|
|
42
|
+
onClick: undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import { headerProps } from 'component';
|
|
5
|
+
declare const Header: {
|
|
6
|
+
(props: headerProps): React.JSX.Element;
|
|
7
|
+
propTypes: {
|
|
8
|
+
user: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
|
+
name: PropTypes.Validator<string>;
|
|
10
|
+
}>>;
|
|
11
|
+
onLogin: PropTypes.Validator<(...args: any[]) => any>;
|
|
12
|
+
onLogout: PropTypes.Validator<(...args: any[]) => any>;
|
|
13
|
+
onCreateAccount: PropTypes.Validator<(...args: any[]) => any>;
|
|
14
|
+
};
|
|
15
|
+
defaultProps: {
|
|
16
|
+
user: undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default Header;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./header";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
export declare const fetchData: (url: string, callback: {
|
|
3
|
+
current: any;
|
|
4
|
+
} | ((data: any) => void)) => Promise<void>;
|
|
5
|
+
export declare const logMessage: (message: string) => void;
|
|
6
|
+
export declare const formatDate: (date: Date) => string;
|
|
7
|
+
interface LoadFBXOptions {
|
|
8
|
+
filepath: string;
|
|
9
|
+
index: string;
|
|
10
|
+
color: string;
|
|
11
|
+
opacity?: number;
|
|
12
|
+
offsetZ?: number;
|
|
13
|
+
R: number;
|
|
14
|
+
callback?: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const LoadsceneFBX: (options: LoadFBXOptions, extractedSurface?: React.MutableRefObject<THREE.Object3D | null>) => void;
|
|
17
|
+
export declare const LoadFBX: (filepath: string, index: string, color: string, opacity?: number, offsetZ?: number, mytype?: string, callback?: () => void) => void;
|
|
18
|
+
export declare const findNodeListByfather: (fatherkey: string, tree: any) => any[];
|
|
19
|
+
export declare const findChildrenByKey: (key: string, tree: any[]) => string[];
|
|
20
|
+
export declare const findNodeByName: (key: string, tree: any) => any;
|
|
21
|
+
export declare const getParentKey: (key: string, tree: any) => string;
|
|
22
|
+
export declare const findfatherlist: (key: string, tree: any[]) => string[];
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { MutableRefObject } from 'react';
|
|
3
|
+
export declare const scene: MutableRefObject<THREE.Scene>;
|
|
4
|
+
export declare const cameralight: MutableRefObject<THREE.PointLight>;
|
|
5
|
+
export declare const camera: MutableRefObject<THREE.PerspectiveCamera>;
|
|
6
|
+
export declare const scale: MutableRefObject<number>;
|
|
7
|
+
export declare const tranX: MutableRefObject<number>;
|
|
8
|
+
export declare const tranY: MutableRefObject<number>;
|
|
9
|
+
export declare const tranZ: MutableRefObject<number>;
|
|
10
|
+
export declare const fbxmeshs: MutableRefObject<Record<string, THREE.Object3D>>;
|
|
11
|
+
export declare const fbxmeshs_jing: MutableRefObject<Record<string, THREE.Object3D>>;
|
|
12
|
+
export declare const mirrorDisplayTag: MutableRefObject<boolean>;
|
|
13
|
+
export declare const node_data: MutableRefObject<Record<string, [THREE.Vector3, number] | number>>;
|
|
14
|
+
export declare let bbox: {
|
|
15
|
+
min: THREE.Vector3;
|
|
16
|
+
max: THREE.Vector3;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-828f9220.js"),t=require("./basedecoder-0503cc54.js");require("react");require("react-dom");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i as r } from "./index-bd7b35db.mjs";
|
|
2
|
+
import { B as o } from "./basedecoder-11034ec6.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import "react-dom";
|
|
5
|
+
class d extends o {
|
|
6
|
+
decodeBlock(e) {
|
|
7
|
+
return r(new Uint8Array(e)).buffer;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
d as default
|
|
12
|
+
};
|