UNPKG

@metacell/geppetto-meta-ui

Version:

React components from geppetto-meta to create neuroscience applications and visualize data.

126 lines (125 loc) 2.73 kB
export default ConnectivityPlot; declare class ConnectivityPlot extends React.Component<any, any, any> { constructor(props: any); height: any; width: any; linkCache: {}; defaultOptions: { nodeType: (node: any) => any; linkWeight: (conn: any) => number; linkType: (conn: any) => number; library: any; }; subRef: React.RefObject<any>; tooltipRef: React.RefObject<any>; shouldComponentUpdate(nextProps: any, nextState: any, nextContext: any): boolean; componentDidMount(): void; componentDidUpdate(prevProps: any, prevState: any, snapshot: any): void; /** * * Sets connectivity auxiliary functions * * @command setOptions() */ setOptions(): void; options: { nodeType: (node: any) => any; linkWeight: (conn: any) => number; linkType: (conn: any) => number; library: any; }; /** * * Creates dataset with provided data * * @command setData(data) * * @param data */ setData(data: any): void; dataset: {}; mapping: {}; mappingSize: number; /** * * Sets nodeColormap * * @command setNodeColormap(nodeColormap) * * @param nodeColormap */ setNodeColormap(nodeColormap: any): void; nodeColormap: any; /** * * Returns default colorScale * * @command defaultColorMapFunction() * */ defaultColorMapFunction(): any; /** * * Creates connections and draws layout * * @command draw() * */ draw(): void; /** * * Creates data from connections * * @command createDataFromConnections() */ createDataFromConnections(): boolean; /** * * Prepocesses node degrees * * @command calculateNodeDegrees(normalize) * @param normalize */ calculateNodeDegrees(normalize: any): void; /** * * Creates node * * @command createNode(id, type) * * @param id * @param type */ createNode(id: any, type: any): void; /** * * Creates link * * @command createLink(sourceId, targetId, type, weight) * * @param sourceId * @param targetId * @param type * @param weight */ createLink(sourceId: any, targetId: any, type: any, weight: any): void; /** * * Draws the layout * * @command drawLayout() * */ drawLayout(): void; svg: any; /** * * Cleans the canvas * * @command cleanCanvas() * */ cleanCanvas(): void; render(): import("react/jsx-runtime").JSX.Element; } import React from "react";