brainsmatics 1.2.6 → 1.2.8
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 +21 -1
- package/dist/component/3d/aichat/index.d.ts +0 -1
- package/dist/component/3d/atlasSiderBar/index.d.ts +1 -1
- package/dist/component/3d/auxiliary/ModeSelector.d.ts +10 -0
- package/dist/component/3d/auxiliary/panels.d.ts +34 -0
- package/dist/component/3d/core/brainOutlineTransform.d.ts +10 -0
- package/dist/component/3d/functionLoop/ConnectivityCard.d.ts +2 -4
- package/dist/component/3d/functionLoop/LiteratureModal.d.ts +14 -0
- package/dist/component/3d/functionLoop/index.d.ts +1 -0
- package/dist/component/3d/index.d.ts +1 -0
- package/dist/component/3d/sequenceRegistration/SequenceRegistrationPanel.d.ts +11 -2
- package/dist/component/3d/sequenceRegistration/api.d.ts +4 -4
- package/dist/component/3d/sequenceRegistration/atlasReslicingReference.d.ts +64 -0
- package/dist/component/3d/sequenceRegistration/brainShellConstraint.d.ts +6 -0
- package/dist/component/3d/sequenceRegistration/connection.d.ts +8 -0
- package/dist/component/3d/sequenceRegistration/exportResult.d.ts +4 -0
- package/dist/component/3d/sequenceRegistration/handoff.d.ts +11 -0
- package/dist/component/3d/sequenceRegistration/poseEditor.d.ts +26 -0
- package/dist/component/3d/sequenceRegistration/stamPlane.d.ts +99 -0
- package/dist/component/3d/sequenceRegistration/transformControls.d.ts +4 -0
- package/dist/component/3d/sequenceRegistration/types.d.ts +113 -0
- package/dist/component/3d/sideBar/ExactMatchButton.d.ts +9 -0
- package/dist/component/3d/sideBar/RegionFilterSelect.d.ts +13 -0
- package/dist/component/3d/sideBar/regionSearch.d.ts +21 -0
- package/dist/component/store/auxiliaryPanelStore.d.ts +2 -8
- package/dist/component/store/auxiliaryStore.d.ts +2 -1
- package/dist/component/store/functionLoopStore.d.ts +24 -67
- package/dist/{deflate-B5uvPjLy.js → deflate-CowmveuV.js} +1 -1
- package/dist/{deflate-C2RXIyq6.mjs → deflate-_ZycUeZq.mjs} +1 -1
- package/dist/{index-rnHO1IdP.js → index-DEgHZlr6.js} +572 -572
- package/dist/{index-D_EhKvAR.mjs → index-tBE0HArS.mjs} +81133 -77973
- package/dist/index.js +1 -1
- package/dist/index.mjs +70 -69
- package/dist/{lerc-BibtwHRJ.mjs → lerc-DtHzaIbU.mjs} +1 -1
- package/dist/{lerc-16CE6ylr.js → lerc-LVs7qdot.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { type StateUpdate } from "./stateUpdate";
|
|
2
|
+
import type { AuxiliaryPanelId } from "../3d/auxiliary/panels";
|
|
2
3
|
export interface AuxiliaryPanelState {
|
|
3
|
-
|
|
4
|
-
tour2Open: boolean;
|
|
5
|
-
tour3Open: boolean;
|
|
6
|
-
tour4Open: boolean;
|
|
7
|
-
tour5Open: boolean;
|
|
8
|
-
tour6Open: boolean;
|
|
9
|
-
tour7Open: boolean;
|
|
4
|
+
activeTour: AuxiliaryPanelId | null;
|
|
10
5
|
tour8Open: boolean;
|
|
11
6
|
angleX: number;
|
|
12
7
|
angleY: number;
|
|
@@ -28,7 +23,6 @@ export interface AuxiliaryPanelState {
|
|
|
28
23
|
isDownloading: boolean;
|
|
29
24
|
previewOpen: boolean;
|
|
30
25
|
previewImage: string;
|
|
31
|
-
registrationConfig: string;
|
|
32
26
|
applyMode: string;
|
|
33
27
|
swcSpace: string;
|
|
34
28
|
analysisMode: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AuxiliaryPanelStore } from "./auxiliaryPanelStore";
|
|
2
|
+
import { AuxiliaryPanelId } from "../3d/auxiliary/panels";
|
|
2
3
|
import { type StateUpdate } from "./stateUpdate";
|
|
3
4
|
export interface SectionInfo {
|
|
4
5
|
gray?: string;
|
|
@@ -13,7 +14,7 @@ export interface SectionInfo {
|
|
|
13
14
|
* registration so callers no longer need an `auxRef`.
|
|
14
15
|
*/
|
|
15
16
|
export interface AuxiliaryController {
|
|
16
|
-
tabChange(index:
|
|
17
|
+
tabChange(index: AuxiliaryPanelId, isFirst?: boolean, loadInterface?: boolean): void;
|
|
17
18
|
showInjectionPath(): void;
|
|
18
19
|
}
|
|
19
20
|
export declare class AuxiliaryStore {
|
|
@@ -13,64 +13,25 @@ export type FunctionLoopFilterGroup = {
|
|
|
13
13
|
} | {
|
|
14
14
|
gene_name: string;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* The imperative surface of one `Functionloop` instance — behaviour that only
|
|
18
|
-
* the component can run.
|
|
19
|
-
*
|
|
20
|
-
* `clearFunctionLoopData` and `removeGroupData` tear down THREE scene objects,
|
|
21
|
-
* and the other four forward into the `FunctionalAnalysisTab` child, whose
|
|
22
|
-
* scene builders live there — since BRAI-10 by resolving `analysisController`
|
|
23
|
-
* off this store rather than by holding a ref onto the child. Registered with
|
|
24
|
-
* `setController` on mount, so a caller no longer needs a ref to a mounted
|
|
25
|
-
* component.
|
|
26
|
-
*
|
|
27
|
-
* This interface had 11 members after BRAI-8. The 5 `setExpanded*Items` setters
|
|
28
|
-
* and `setSelectedMethods` have been removed (BRAI-9) — those states are now
|
|
29
|
-
* store fields, leaving 6 members: 2 scene teardown methods and 4 behavior
|
|
30
|
-
* methods that still forward to the child.
|
|
31
|
-
*/
|
|
16
|
+
/** Scene and analysis actions exposed by the outer functional-loop panel. */
|
|
32
17
|
export interface FunctionLoopController {
|
|
33
18
|
clearFunctionLoopData(): void;
|
|
34
19
|
removeGroupData(id: string, groupName?: string): void;
|
|
35
20
|
triggerAnalysis(overrideRegions?: string[]): Promise<void>;
|
|
36
|
-
loadMethodData(id: string, filterGroup?: FunctionLoopFilterGroup | null, externalData?: unknown): void
|
|
37
|
-
previewGene(geneName: string, excludeRegions?: string[]): void
|
|
38
|
-
previewReceptor(receptorName: string, excludeRegions?: string[]): void
|
|
21
|
+
loadMethodData(id: string, filterGroup?: FunctionLoopFilterGroup | null, externalData?: unknown): Promise<void>;
|
|
22
|
+
previewGene(geneName: string, excludeRegions?: string[]): Promise<void>;
|
|
23
|
+
previewReceptor(receptorName: string, excludeRegions?: string[]): Promise<void>;
|
|
39
24
|
}
|
|
40
|
-
/**
|
|
41
|
-
* The imperative surface of the `FunctionalAnalysisTab` child — the four
|
|
42
|
-
* behaviours the outer `Functionloop` cannot run itself, because the THREE
|
|
43
|
-
* scene builders and the analysis request live in the child.
|
|
44
|
-
*
|
|
45
|
-
* The outer component used to reach these through a `functionalAnalysisTabRef`;
|
|
46
|
-
* the child registers here with `setAnalysisController` instead (BRAI-10), so
|
|
47
|
-
* the four forwarding members of `FunctionLoopController` resolve through the
|
|
48
|
-
* store rather than through a ref onto a mounted child.
|
|
49
|
-
*
|
|
50
|
-
* Deliberately not `FunctionLoopController`: that interface also carries
|
|
51
|
-
* `clearFunctionLoopData` and `removeGroupData`, which are the outer
|
|
52
|
-
* component's own scene teardown and have no counterpart in the child.
|
|
53
|
-
*/
|
|
25
|
+
/** Scene builders and pending-display cleanup owned by FunctionalAnalysisTab. */
|
|
54
26
|
export interface FunctionalAnalysisController {
|
|
27
|
+
clearDisplay(): void;
|
|
28
|
+
removeGroupData(id: string, groupName?: string): void;
|
|
55
29
|
triggerAnalysis(overrideRegions?: string[]): Promise<void>;
|
|
56
|
-
loadMethodData(id: string, filterGroup?: FunctionLoopFilterGroup, externalData?: unknown): void
|
|
57
|
-
previewGene(geneName: string, excludeRegions?: string[]): void
|
|
58
|
-
previewReceptor(receptorName: string, excludeRegions?: string[]): void
|
|
30
|
+
loadMethodData(id: string, filterGroup?: FunctionLoopFilterGroup, externalData?: unknown): Promise<void>;
|
|
31
|
+
previewGene(geneName: string, excludeRegions?: string[]): Promise<void>;
|
|
32
|
+
previewReceptor(receptorName: string, excludeRegions?: string[]): Promise<void>;
|
|
59
33
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Shared state of the functional-loop panel.
|
|
62
|
-
*
|
|
63
|
-
* These three fields used to be `useState` inside `Functionloop` and were
|
|
64
|
-
* reachable from `aichat` only through an imperative handle — `setLinkRegions`,
|
|
65
|
-
* `setLinkRegionsTitle` and `setFunctionLoopData` were pure `useState` setters
|
|
66
|
-
* forwarded onto that handle. A caller now writes the store action directly and
|
|
67
|
-
* no longer needs a ref to a mounted component.
|
|
68
|
-
*
|
|
69
|
-
* `selectedMethods` and the five `expanded*Items` used to be `useState` inside
|
|
70
|
-
* `FunctionalAnalysisTab` and were reachable from the outer `Functionloop` only
|
|
71
|
-
* through an imperative handle. They are store fields now: the component reads
|
|
72
|
-
* them as an observer, and the outer component writes them directly.
|
|
73
|
-
*/
|
|
34
|
+
/** Shared analysis data and the canonical selection driving scene visibility. */
|
|
74
35
|
export declare class FunctionLoopStore {
|
|
75
36
|
/** Regions the analysis runs over. Driven by the region tree and by aichat. */
|
|
76
37
|
linkRegions: string[];
|
|
@@ -85,14 +46,18 @@ export declare class FunctionLoopStore {
|
|
|
85
46
|
* uses, so a stale instance cannot clear a newer one's registration.
|
|
86
47
|
*/
|
|
87
48
|
analysisController: FunctionalAnalysisController | null;
|
|
88
|
-
/**
|
|
49
|
+
/** Canonical `${id}_${displayName}` keys; swc_tree may use its bare type. */
|
|
89
50
|
selectedMethods: string[];
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
51
|
+
private loadingCount;
|
|
52
|
+
get isLoading(): boolean;
|
|
53
|
+
get expandedViralItems(): Set<string>;
|
|
54
|
+
get expandedMRIItems(): Set<string>;
|
|
55
|
+
get expandedElectrophysiologyItems(): Set<string>;
|
|
56
|
+
get expandedOptogeneticsItems(): Set<string>;
|
|
57
|
+
get expandedSynapseItems(): Set<string>;
|
|
58
|
+
get expandedGeneNames(): Set<string>;
|
|
59
|
+
get expandedReceptorNames(): Set<string>;
|
|
60
|
+
getExpandedItems(id: string): Set<string>;
|
|
96
61
|
constructor();
|
|
97
62
|
setLinkRegions(value: StateUpdate<string[]>): void;
|
|
98
63
|
setLinkRegionsTitle(value: StateUpdate<string>): void;
|
|
@@ -100,15 +65,7 @@ export declare class FunctionLoopStore {
|
|
|
100
65
|
setController(controller: FunctionLoopController | null): void;
|
|
101
66
|
setAnalysisController(controller: FunctionalAnalysisController | null): void;
|
|
102
67
|
setSelectedMethods(value: StateUpdate<string[]>): void;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
setExpandedElectrophysiologyItems(value: StateUpdate<Set<string>>): void;
|
|
106
|
-
setExpandedOptogeneticsItems(value: StateUpdate<Set<string>>): void;
|
|
107
|
-
setExpandedSynapseItems(value: StateUpdate<Set<string>>): void;
|
|
108
|
-
/**
|
|
109
|
-
* The store outlives the component, so what used to reset itself by being
|
|
110
|
-
* `useState` has to be reset explicitly. Called during the first render of
|
|
111
|
-
* each `Functionloop` mount — the same point the `useState` initializers ran.
|
|
112
|
-
*/
|
|
68
|
+
withLoading<T>(operation: () => T | Promise<T>): Promise<T>;
|
|
69
|
+
/** Reset panel selections without releasing loading operations still in flight. */
|
|
113
70
|
resetPerMountState(): void;
|
|
114
71
|
}
|
|
@@ -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-DEgHZlr6.js"),t=require("./basedecoder-CsHP9rmG.js");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;
|