brainsmatics 1.1.90 → 1.1.92

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.
@@ -1,9 +1,12 @@
1
1
  import React from 'react';
2
2
  interface ChartConfig {
3
- chart_type: 'grouped_bar' | 'radar' | 'heatmap' | 'chord' | 'sankey';
3
+ chart_type: 'grouped_bar' | 'radar' | 'heatmap' | 'chord' | 'sankey' | 'spatial_adjacency_diagram';
4
4
  region_ids: string[];
5
5
  region_names?: string[];
6
- sankey_data?: any;
6
+ sankey_data?: unknown;
7
+ spatial_adjacency_data?: unknown;
8
+ adjacency_data?: unknown;
9
+ center_region?: string;
7
10
  }
8
11
  export interface ChartViewerProps {
9
12
  config: ChartConfig;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ export interface SpatialNeighbor {
3
+ region_id: string;
4
+ name_zh?: string;
5
+ name_en?: string;
6
+ direction: string;
7
+ direction_zh?: string;
8
+ direction_en?: string;
9
+ direction_code?: string;
10
+ contact_area?: number;
11
+ total_contact_area_um2?: number;
12
+ structure_type?: 'nucleus' | 'fiber_tract' | 'ventricular_structure' | 'cortical_area' | string;
13
+ }
14
+ export interface SpatialAdjacencyData {
15
+ center_region: string;
16
+ center_name_zh?: string;
17
+ center_name_en?: string;
18
+ neighbors?: SpatialNeighbor[];
19
+ adjacent_regions?: SpatialNeighbor[];
20
+ }
21
+ export interface SpatialAdjacencyChartProps {
22
+ data: SpatialAdjacencyData;
23
+ title?: string;
24
+ width?: string | number;
25
+ height?: string | number;
26
+ description?: string;
27
+ operationInstructions?: string;
28
+ onNodeClick?: (regionId: string) => void;
29
+ onChartReady?: () => void;
30
+ }
31
+ declare const SpatialAdjacencyChart: React.FC<SpatialAdjacencyChartProps>;
32
+ export default SpatialAdjacencyChart;
@@ -10,3 +10,5 @@ export { default as HeatmapChart } from './HeatmapChart';
10
10
  export type { HeatmapChartProps, HeatmapData } from './HeatmapChart';
11
11
  export { default as ChartViewer } from './ChartViewer';
12
12
  export type { ChartViewerProps } from './ChartViewer';
13
+ export { default as SpatialAdjacencyChart } from './SpatialAdjacencyChart';
14
+ export type { SpatialAdjacencyChartProps, SpatialAdjacencyData, SpatialNeighbor, } from './SpatialAdjacencyChart';
@@ -26,10 +26,13 @@ interface ToolCall {
26
26
  toolCallId?: string;
27
27
  }
28
28
  interface ChartConfig {
29
- chart_type: 'grouped_bar' | 'radar' | 'heatmap' | 'chord' | 'sankey';
29
+ chart_type: 'grouped_bar' | 'radar' | 'heatmap' | 'chord' | 'sankey' | 'spatial_adjacency_diagram';
30
30
  region_ids: string[];
31
31
  region_names?: string[];
32
- sankey_data?: any;
32
+ sankey_data?: unknown;
33
+ spatial_adjacency_data?: unknown;
34
+ adjacency_data?: unknown;
35
+ center_region?: string;
33
36
  }
34
37
  interface StandardBrainRegion {
35
38
  region_id: number;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { MappingCapabilities } from './api';
3
3
  export interface ParseParams {
4
+ parse_mode: 'swc_to_js' | 'neuron_registration_to_json';
4
5
  swc_space: string;
5
6
  resolution_um: number;
6
7
  convert_to_stam: boolean;
@@ -9,7 +9,7 @@ export declare const checkFolderState: () => Promise<Folderupdate>;
9
9
  export declare const executeAggregateQuery: (peerID: string, dataset: string, region: string, version?: number, signal?: AbortSignal) => Promise<QueryResultData>;
10
10
  export declare const executeCoProjection: (peerID: string, dataset: string, params: URLSearchParams, signal?: AbortSignal) => Promise<CoProjectionRecord[]>;
11
11
  export declare const exportCoProjectionCSV: (params: URLSearchParams) => Promise<string>;
12
- export declare const executeDistributedConnectivity: (dataset: string, regions: string[], peers: string[], signal?: AbortSignal) => Promise<{
12
+ export declare const executeDistributedConnectivity: (dataset: string, regions: string[], peers: string[], signal?: AbortSignal, localDatasetPath?: string) => Promise<{
13
13
  code: number;
14
14
  message?: string;
15
15
  data?: DistributedConnectivityRecord[];
@@ -1,4 +1,4 @@
1
- import { i as r } from "./index-6a055b8b.mjs";
1
+ import { i as r } from "./index-2069cd92.mjs";
2
2
  import { B as o } from "./basedecoder-11034ec6.mjs";
3
3
  import "react";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-b2c5b5aa.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-cd2028c3.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;