UNPKG

scichart

Version:

Fast WebGL JavaScript Charting Library and Framework

30 lines (29 loc) 1.7 kB
import { Rect } from "../../Core/Rect"; import { Thickness } from "../../Core/Thickness"; import { TSciChartSurfaceCanvases } from "../../types/TSciChartSurfaceCanvases"; import { WebGlRenderContext2D } from "../Drawing/WebGlRenderContext2D"; import { I2DSubSurfaceOptions } from "./I2DSurfaceOptions"; import { ISciChartSubSurface } from "./ISciChartSubSurface"; import { ISciChartSurface } from "./ISciChartSurface"; import { ISciChartSurfaceOptions } from "./SciChartSurface"; export interface ISciChartSubSurfaceOptions extends ISciChartSurfaceOptions { subSurfaceOptions: I2DSubSurfaceOptions; parentSurface: ISciChartSurface; } declare function createSubSurfaceCanvases(parentSurface: ISciChartSurface): TSciChartSurfaceCanvases; declare function getSubChartRect(sub: ISciChartSubSurface): Rect; declare function deleteSubChart(sub: ISciChartSubSurface, clearHtml: boolean): void; declare function calcPadding(sub: ISciChartSubSurface): Thickness; declare function applySciChartBackground(sub: ISciChartSubSurface, background: string, renderContext: WebGlRenderContext2D): void; declare function updateWrapper(sub: ISciChartSubSurface, padding: Thickness): void; declare function getOffsets(sub: ISciChartSubSurface, subChartContainer: HTMLDivElement): Thickness; export declare const sciChartSubSurfaceCommon: { createSubSurfaceCanvases: typeof createSubSurfaceCanvases; getSubChartRect: typeof getSubChartRect; deleteSubChart: typeof deleteSubChart; calcPadding: typeof calcPadding; applySciChartBackground: typeof applySciChartBackground; updateWrapper: typeof updateWrapper; getOffsets: typeof getOffsets; }; export {};