UNPKG

@robotical/sensors-dashboard

Version:

A dashboard tool for depicting Marty data by Robotical

21 lines (20 loc) 743 B
/// <reference types="react" /> import RAFT from "@robotical/webapp-types/dist-types/src/application/RAFTs/RAFT"; import MicroBitWebBluetooth from "../../microbit/MicroBitWebBluetooth"; interface GraphAreaProps { graphId: string; raft: RAFT | MicroBitWebBluetooth; deviceName: string; removeGraph: (graphId: string) => void; mainRef: React.RefObject<HTMLDivElement>; } export interface TraceData { x: number[]; y: number[]; } export type TraceIdType = `${string}=>${string}`; export type GraphDataType = { [traceTitle: TraceIdType]: TraceData; }; declare function GraphArea({ graphId, removeGraph, mainRef, raft, deviceName }: GraphAreaProps): import("react/jsx-runtime").JSX.Element; export default GraphArea;