brainsmatics 1.1.100 → 1.2.1
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/README.md +1 -1
- package/dist/assets/nifti.worker-c7d5c88c.js +54 -0
- package/dist/{stories → component/2d/charts}/BarChart.stories.d.ts +1 -1
- package/dist/{stories → component/2d/charts}/ChordChart.stories.d.ts +1 -1
- package/dist/{stories → component/2d/charts}/HeatmapChart.stories.d.ts +1 -1
- package/dist/{stories → component/2d/charts}/RadarChart.stories.d.ts +1 -1
- package/dist/{stories → component/2d/charts}/SankeyChart.stories.d.ts +1 -1
- package/dist/{stories → component/2d/charts}/SpatialAdjacencyChart.stories.d.ts +1 -1
- package/dist/component/2d/distribution/Distribution.stories.d.ts +10 -0
- package/dist/component/2d/gridviewer/index.d.ts +9 -7
- package/dist/component/2d/index.d.ts +1 -1
- package/dist/component/2d/mulifiveiewer/MulfiViewer.stories.d.ts +10 -0
- package/dist/component/2d/navtree/NavTree.stories.d.ts +6 -0
- package/dist/component/2d/tast1/Task1.stories.d.ts +9 -0
- package/dist/component/2d/thumbnail/Thumbnail.stories.d.ts +6 -0
- package/dist/component/2d/twoviewer/TwoViewer.stories.d.ts +6 -0
- package/dist/component/3d/aichat/AiViewer.stories.d.ts +6 -0
- package/dist/component/3d/aichat/LoginModal.d.ts +3 -2
- package/dist/component/3d/aichat/SkillsModal.d.ts +2 -2
- package/dist/component/3d/aichat/UserMenu.d.ts +2 -2
- package/dist/component/3d/aichat/authService.d.ts +6 -4
- package/dist/component/3d/aichat/index.d.ts +13 -13
- package/dist/component/3d/atlasSiderBar/index.d.ts +3 -3
- package/dist/component/3d/atlasuploadComponent/index.d.ts +4 -4
- package/dist/component/3d/auxiliary/index.d.ts +10 -11
- package/dist/component/3d/auxiliary/utils.d.ts +8 -0
- package/dist/component/3d/card/index.d.ts +3 -3
- package/dist/{stories/3Ddata.stories.d.ts → component/3d/cardData/Carddata.stories.d.ts} +4 -8
- package/dist/component/3d/chartViewer/ChartViewer.stories.d.ts +6 -0
- package/dist/component/3d/contractBox/index.d.ts +2 -2
- package/dist/component/3d/core/RendererBackendSwitch.d.ts +1 -1
- package/dist/component/3d/core/disposeObject3D.d.ts +7 -0
- package/dist/component/3d/core/volumeShaders.d.ts +3 -0
- package/dist/component/3d/functionLoop/ConnectivityCard.d.ts +1 -1
- package/dist/component/3d/functionLoop/GeneExpressionCard.d.ts +1 -1
- package/dist/component/3d/functionLoop/SingleNeuronCard.d.ts +1 -1
- package/dist/{stories → component/3d/functionLoop}/SingleNeuronCard.stories.d.ts +1 -1
- package/dist/component/3d/functionLoop/SynapseCard.d.ts +1 -1
- package/dist/component/3d/index.d.ts +4 -4
- package/dist/component/3d/injectionPath.d.ts +13 -0
- package/dist/component/3d/inputgrey/InputGrey.stories.d.ts +6 -0
- package/dist/component/3d/lengthViewer/LengthViewer.stories.d.ts +6 -0
- package/dist/component/3d/markdown/index.d.ts +4 -3
- package/dist/component/3d/modal2DLoader/index.d.ts +3 -2
- package/dist/component/3d/modalLoader/index.d.ts +3 -3
- package/dist/component/3d/pipeline/index.d.ts +1 -0
- package/dist/component/3d/registration/Registration.stories.d.ts +6 -0
- package/dist/component/3d/sangjiViewer/SangjiViewer.stories.d.ts +6 -0
- package/dist/component/3d/sideBar/index.d.ts +1 -1
- package/dist/component/3d/stlLoader/index.d.ts +2 -2
- package/dist/component/3d/swctree/SwcTree.stories.d.ts +6 -0
- package/dist/component/3d/tabViewer/TabViewer.stories.d.ts +6 -0
- package/dist/component/3d/uploadComponent/index.d.ts +2 -2
- package/dist/component/3d/userUpload/UserUpload.stories.d.ts +6 -0
- package/dist/component/3d/wordMap/WordMap.stories.d.ts +7 -0
- package/dist/component/common/Button/Button.stories.d.ts +9 -0
- package/dist/component/common/Button/index.d.ts +10 -40
- package/dist/component/common/Header/Header.stories.d.ts +7 -0
- package/dist/component/common/Header/index.d.ts +5 -17
- package/dist/component/index.d.ts +0 -2
- package/dist/component/store/auxiliaryStore.d.ts +1 -0
- package/dist/component/store/pipelineStore.d.ts +1 -0
- package/dist/{deflate-4ad884c9.js → deflate-b1af3cf6.js} +1 -1
- package/dist/{deflate-96f10b34.mjs → deflate-b43f36d7.mjs} +1 -1
- package/dist/demos/AtlasViewer.stories.d.ts +9 -0
- package/dist/demos/Task3D.stories.d.ts +10 -0
- package/dist/{index-95a960e5.mjs → index-3e261d08.mjs} +81417 -84681
- package/dist/{index-de68b051.js → index-96961b4b.js} +971 -1230
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{lerc-138de5b4.js → lerc-06b4adc8.js} +1 -1
- package/dist/{lerc-70063953.mjs → lerc-e30a71da.mjs} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/assets/nifti.worker-ff990a75.js +0 -54
- package/dist/component/3d/uploadComponent/nifti.worker.d.ts +0 -1
- package/dist/component/3d/uploadComponent/urlSceneFile.d.ts +0 -18
- package/dist/stories/3Dlabel.d.ts +0 -4
- package/dist/stories/3Dlabelreglions.d.ts +0 -4
- package/dist/stories/3Dlable.stories.d.ts +0 -11
- package/dist/stories/3Dlablereglions.stories.d.ts +0 -11
- package/dist/stories/3Dneurons.d.ts +0 -4
- package/dist/stories/3Dneurons.stories.d.ts +0 -11
- package/dist/stories/3Dswc.stories.d.ts +0 -11
- package/dist/stories/ArlasViewer.stories.d.ts +0 -11
- package/dist/stories/Button.stories.d.ts +0 -25
- package/dist/stories/Distribution.stories.d.ts +0 -10
- package/dist/stories/Header.stories.d.ts +0 -30
- package/dist/stories/Iputgrey.stories.d.ts +0 -11
- package/dist/stories/MulfiViewer.stories.d.ts +0 -10
- package/dist/stories/Page.d.ts +0 -3
- package/dist/stories/Page.stories.d.ts +0 -14
- package/dist/stories/Sangjiviewer.stories.d.ts +0 -13
- package/dist/stories/Soma.d.ts +0 -4
- package/dist/stories/Soma.stories.d.ts +0 -11
- package/dist/stories/Task3D.stories.d.ts +0 -11
- package/dist/stories/Thumbnail.stories.d.ts +0 -24
- package/dist/stories/UserUpload.d.ts +0 -3
- package/dist/stories/UserUpload.stories.d.ts +0 -18
- package/dist/stories/Vessel.d.ts +0 -4
- package/dist/stories/Vessel.stories.d.ts +0 -11
- package/dist/stories/chartviewer.stories.d.ts +0 -24
- package/dist/stories/lengthviewer.stories.d.ts +0 -16
- package/dist/stories/navtree.stories.d.ts +0 -24
- package/dist/stories/registration.stories.d.ts +0 -11
- package/dist/stories/tast1.stories.d.ts +0 -10
- package/dist/stories/twoview.stories.d.ts +0 -30
- /package/dist/component/3d/{atlasuploadComponent → core}/nifti.worker.d.ts +0 -0
- /package/dist/component/3d/{atlasuploadComponent → core}/urlSceneFile.d.ts +0 -0
- /package/dist/{stories → demos}/AtlasViewer.d.ts +0 -0
- /package/dist/{stories → demos}/task3D.d.ts +0 -0
|
@@ -23,5 +23,5 @@ interface SingleNeuronCardProps {
|
|
|
23
23
|
loading?: boolean;
|
|
24
24
|
onNeuronFilter?: (somaRegion: string, axonRegion: string) => void;
|
|
25
25
|
}
|
|
26
|
-
declare const SingleNeuronCard: React.
|
|
26
|
+
declare const SingleNeuronCard: React.NamedExoticComponent<SingleNeuronCardProps>;
|
|
27
27
|
export default SingleNeuronCard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import SingleNeuronCard from '
|
|
2
|
+
import SingleNeuronCard from './SingleNeuronCard';
|
|
3
3
|
declare const meta: Meta<typeof SingleNeuronCard>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof SingleNeuronCard>;
|
|
@@ -20,5 +20,5 @@ export interface SynapseCardProps {
|
|
|
20
20
|
targetRegions?: string[];
|
|
21
21
|
synapseColors?: Record<string, string>;
|
|
22
22
|
}
|
|
23
|
-
declare const SynapseCard: React.
|
|
23
|
+
declare const SynapseCard: React.NamedExoticComponent<SynapseCardProps>;
|
|
24
24
|
export default SynapseCard;
|
|
@@ -4,8 +4,8 @@ export { default as ModalLoader } from "./modalLoader";
|
|
|
4
4
|
export { default as Auxiliary } from "./auxiliary";
|
|
5
5
|
export { default as AiViewer } from "./aichat";
|
|
6
6
|
export { default as Sections } from "./section";
|
|
7
|
-
export { default as StlLoader } from "./stlLoader";
|
|
8
|
-
export { default as Modal2DLoader } from "./modal2DLoader";
|
|
7
|
+
export { default as StlLoader, type StlLoaderProps } from "./stlLoader";
|
|
8
|
+
export { default as Modal2DLoader, type Modal2DLoaderProps } from "./modal2DLoader";
|
|
9
9
|
export { default as BottomTabs } from "./bottomTabs";
|
|
10
10
|
export { default as Swctree } from "./swctree";
|
|
11
11
|
export { default as ShowReglions } from "./showreglions";
|
|
@@ -18,7 +18,7 @@ export { default as FunctionLoopSwc } from "./functionLoopSwc";
|
|
|
18
18
|
export { default as UserUpload } from "./userUpload";
|
|
19
19
|
export { default as AtlasUserUpload } from "./atlasuserUpload";
|
|
20
20
|
export type { AtlasUserUploadHandle, AtlasUserUploadProps } from "./atlasuserUpload";
|
|
21
|
-
export { default as UploadComponent } from "./uploadComponent";
|
|
22
|
-
export { default as AtlasUploadComponent } from "./atlasuploadComponent";
|
|
21
|
+
export { default as UploadComponent, type UploadComponentProps } from "./uploadComponent";
|
|
22
|
+
export { default as AtlasUploadComponent, type AtlasUploadComponentProps } from "./atlasuploadComponent";
|
|
23
23
|
export { default as VolumeAnalysis } from "./volumeAnalysis";
|
|
24
24
|
export * from "./core";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const INJECTION_PATH_EVENT = "brain:injection-path";
|
|
2
|
+
export interface InjectionPath {
|
|
3
|
+
target_point: [number, number, number];
|
|
4
|
+
entry_point: [number, number, number];
|
|
5
|
+
/** Ordered audited structures, including non-nucleus structures. */
|
|
6
|
+
path_nuclei: string[];
|
|
7
|
+
/** Exact fbx avoidance set submitted to compute; absent in older saved results. */
|
|
8
|
+
avoidance_nuclei?: string[];
|
|
9
|
+
}
|
|
10
|
+
/** Reject incomplete or non-finite geometry instead of guessing from chat text. */
|
|
11
|
+
export declare function parseInjectionPath(value: unknown): InjectionPath | null;
|
|
12
|
+
/** SSE data and persisted tool results may contain one response envelope. */
|
|
13
|
+
export declare function injectionPathFromToolResult(value: unknown): InjectionPath | null;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
interface MarkdownProps {
|
|
3
3
|
loadAssign: () => void;
|
|
4
|
-
brain_D:
|
|
4
|
+
brain_D: unknown[];
|
|
5
5
|
content: string;
|
|
6
|
-
}
|
|
6
|
+
}
|
|
7
|
+
declare const Markdown: React.NamedExoticComponent<MarkdownProps>;
|
|
7
8
|
export default Markdown;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.css";
|
|
3
|
-
|
|
3
|
+
export interface Modal2DLoaderProps {
|
|
4
4
|
totalLevel: number;
|
|
5
5
|
is3DViewer: boolean;
|
|
6
6
|
setcurrentLevel: React.Dispatch<React.SetStateAction<number>>;
|
|
7
7
|
currentLevel: number;
|
|
8
8
|
layerxyz: string;
|
|
9
9
|
is2DViewer: boolean;
|
|
10
|
-
}
|
|
10
|
+
}
|
|
11
|
+
declare const Modal2DLoader: React.MemoExoticComponent<({ currentLevel, totalLevel, layerxyz, is3DViewer, setcurrentLevel: setCurrentLevel, is2DViewer, }: Modal2DLoaderProps) => React.JSX.Element>;
|
|
11
12
|
export default Modal2DLoader;
|
|
@@ -3,11 +3,11 @@ import * as THREE from "three";
|
|
|
3
3
|
import './index.css';
|
|
4
4
|
interface LoaderProps {
|
|
5
5
|
regionData: string;
|
|
6
|
-
vesselObj?: React.MutableRefObject<
|
|
6
|
+
vesselObj?: React.MutableRefObject<Record<string, THREE.Object3D>>;
|
|
7
7
|
setbbox: React.Dispatch<React.SetStateAction<{
|
|
8
8
|
min: THREE.Vector3;
|
|
9
9
|
max: THREE.Vector3;
|
|
10
10
|
}>>;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export default
|
|
12
|
+
declare const ModalLoader: React.NamedExoticComponent<LoaderProps>;
|
|
13
|
+
export default ModalLoader;
|
|
@@ -30,6 +30,7 @@ interface propsType {
|
|
|
30
30
|
outflag?: boolean;
|
|
31
31
|
clickPoint?: React.MutableRefObject<THREE.Vector3>;
|
|
32
32
|
endPoint?: THREE.Vector3;
|
|
33
|
+
setendPoint?: React.Dispatch<React.SetStateAction<THREE.Vector3>>;
|
|
33
34
|
computeAngles?: ComputeAngles | null;
|
|
34
35
|
setoutflag?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
35
36
|
outflagRef?: React.MutableRefObject<boolean>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as THREE from "three";
|
|
3
|
-
interface
|
|
3
|
+
export interface StlLoaderProps {
|
|
4
4
|
percentage: number;
|
|
5
5
|
layerxyz: string;
|
|
6
6
|
scene: React.MutableRefObject<THREE.Scene>;
|
|
7
7
|
}
|
|
8
|
-
declare const StlLoader: React.FC<
|
|
8
|
+
declare const StlLoader: React.FC<StlLoaderProps>;
|
|
9
9
|
export default StlLoader;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import * as THREE from "three";
|
|
3
|
-
import "
|
|
4
|
-
interface UploadComponentProps {
|
|
3
|
+
import "../uploadControls.css";
|
|
4
|
+
export interface UploadComponentProps {
|
|
5
5
|
renderer: THREE.WebGLRenderer;
|
|
6
6
|
urlRef: React.MutableRefObject<URL>;
|
|
7
7
|
t: any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import MapComponent from './index';
|
|
3
|
+
declare const meta: Meta<typeof MapComponent>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MapComponent>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Empty: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Button } from './index';
|
|
3
|
+
declare const meta: Meta<typeof Button>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Button>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
8
|
+
export declare const Large: Story;
|
|
9
|
+
export declare const Small: Story;
|
|
@@ -1,45 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
import { type ButtonHTMLAttributes } from 'react';
|
|
3
2
|
import './index.css';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
interface buttonProps {
|
|
3
|
+
type ButtonSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export interface ButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
8
5
|
primary?: boolean;
|
|
9
|
-
backgroundColor?:
|
|
10
|
-
size?:
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
size?: ButtonSize;
|
|
11
8
|
label: string;
|
|
12
|
-
[key: string]: any;
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
};
|
|
10
|
+
/**
|
|
11
|
+
* Storybook-compatible button built on native button attributes.
|
|
12
|
+
* Custom presentation props are removed before forwarding to avoid invalid DOM attributes.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Button: import("react").NamedExoticComponent<ButtonProps>;
|
|
45
15
|
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import Header from './index';
|
|
3
|
+
declare const meta: Meta<typeof Header>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Header>;
|
|
6
|
+
export declare const LoggedIn: Story;
|
|
7
|
+
export declare const LoggedOut: Story;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
1
|
+
import type { headerProps as HeaderProps } from '../../types/header';
|
|
3
2
|
import './index.css';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
};
|
|
3
|
+
/**
|
|
4
|
+
* Static header content is memoized because parent pages commonly rerender for viewer state.
|
|
5
|
+
*/
|
|
6
|
+
declare const Header: import("react").NamedExoticComponent<HeaderProps>;
|
|
19
7
|
export default Header;
|
|
@@ -14,6 +14,7 @@ export interface SectionInfo {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface AuxiliaryController {
|
|
16
16
|
tabChange(index: unknown, isFirst?: boolean, loadInterface?: boolean): void;
|
|
17
|
+
showInjectionPath(): void;
|
|
17
18
|
}
|
|
18
19
|
export declare class AuxiliaryStore {
|
|
19
20
|
readonly panel: AuxiliaryPanelStore;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-96961b4b.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,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import AtlasViewer from './AtlasViewer';
|
|
3
|
+
/**
|
|
4
|
+
* Atlas 图谱浏览演示页(保留自原 src/stories,非组件库公共 API)。
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof AtlasViewer>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof AtlasViewer>;
|
|
9
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import task3D from './task3D';
|
|
3
|
+
/**
|
|
4
|
+
* Task3D 演示页(保留自原 src/stories,非组件库公共 API)。
|
|
5
|
+
* 依赖 Three.js 场景与内网接口/静态资源。
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: Meta<typeof task3D>;
|
|
8
|
+
export default meta;
|
|
9
|
+
type Story = StoryObj<typeof task3D>;
|
|
10
|
+
export declare const Default: Story;
|