scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
25 lines (24 loc) • 1.44 kB
TypeScript
import { TSciChart } from "../../types/TSciChart";
import { TSciChartSurfaceCanvases } from "../../types/TSciChartSurfaceCanvases";
import { IThemeProvider } from "../Themes/IThemeProvider";
import { I2DSurfaceOptions } from "./I2DSurfaceOptions";
import { ISciChartSurfaceOptions, SciChartSurface, TWebAssemblyChart } from "./SciChartSurface";
export declare type TSurfaceConstructor<T extends SciChartSurface> = (wasmContext: TSciChart, options?: ISciChartSurfaceOptions) => T;
/** @ignore */
declare type TSciChartMaster = {
id: string;
wasmContext: TSciChart;
createChildSurface: <T extends SciChartSurface>(divElementId: string, canvases: TSciChartSurfaceCanvases, theme: IThemeProvider, surfaceConstructor: TSurfaceConstructor<T>) => T;
getChildSurfaces: () => SciChartSurface[];
};
/** @ignore */
export declare const createMultichart: <T extends SciChartSurface>(divElement: string | HTMLDivElement, surfaceConstructor: TSurfaceConstructor<T>, options?: I2DSurfaceOptions) => Promise<TWebAssemblyChart<T>>;
export declare const getSharedWasmContext: () => Promise<TSciChart>;
export declare const initializeChartEngine2D: (options?: {
destinationCanvas: HTMLCanvasElement;
}) => Promise<TSciChartMaster>;
/** @ignore */
export declare const disposeMultiChart: () => void;
/** @ignore */
export declare const monitorWebGL: (wasmContext: TSciChart, isMaster: boolean) => void;
export {};