import Konva from "konva"; import { AnimationEventType, Plot, PlotFactory } from "./plots"; import { DataSet, DataSetEventType } from "../data"; import { Renderer } from "../renderer"; import { ChartRenderableItem } from "./chart-renderable-item"; import { KeyboardNavigationsFactory } from "./navigation"; import { DataRect, NumericDataRect, NumericPoint, Size } from "../geometry"; import { ChartOptions, HeaderOptions, PlotOptions, PlotOptionsClass } from "../options"; import { EventBase, EventListener } from "../events"; import { IDisposable } from "../i-disposable"; export declare class Chart implements EventListener, IDisposable { private plotFactory; private keyboardNavigationsFactory; private isDisposed; static readonly MinZoomLevel: number; private readonly container; private readonly element; private readonly jqueryElt; private readonly _id; private _renderer; private readonly _location; private _size; private dataTransformation; private readonly contentItems; private readonly plots; private _visibleRect; private _visibleRectAsNumeric; private _screenRect; private readonly keyboardNavigation; private readonly mouseNavigation; private readonly headerLabel; private dataSet; private legend; private layersConfigs; private resizeSensor; private resizeSensorCallback; private isFitToViewModeEnabled; private isAsyncFitToViewRequired; get id(): number; get location(): NumericPoint; get size(): Size; get visibleRect(): DataRect> | undefined; get screenRect(): NumericDataRect; get visibleRectAsNumeric(): NumericDataRect; private options; private horizontalAxis?; private verticalAxis?; private chartGrid; private static currentChartId; /** * Creates new instance of chart. * @param {string} container - Container element. * @param {DataSet} dataSet - DataSet with data for this chart. * @param {ChartOptions} options - Chart options. * @param {DataRect} visibleRect - Currently visible rectangle on chart. * @param {PlotFactory} plotFactory - injected factory to create plots based on options. * @param {KeyboardNavigationsFactory} keyboardNavigationsFactory - injected factory to create keyboard navigation. * */ constructor(container: string | HTMLDivElement, dataSet: DataSet, options: ChartOptions, visibleRect?: DataRect> | undefined, plotFactory?: PlotFactory, keyboardNavigationsFactory?: KeyboardNavigationsFactory); get renderer(): Renderer; getLayer(layerId: string): Konva.Layer | undefined; addContentItem(contentItem: ChartRenderableItem): void; removeContentItem(contentItem: ChartRenderableItem): void; addPlot(plot: Plot): void; /** * Updates chart's visible rectangle, using dimension values. * @param {DataRect} visibleRect - new visible rectangle for chart * @param {boolean} isTriggeredByInputDevice - whether this update is triggered by user input device (Mouse, Keyboard, etc) or not. * */ update(visibleRect: DataRect>, isTriggeredByInputDevice?: boolean): void; /** * Updates chart's visible rectangle, using numeric values. * @param {NumericDataRect} visibleRectAsNumeric - new visible rectangle for chart in numeric units * @param {boolean} isTriggeredByInputDevice - whether this update is triggered by user input device (Mouse, Keyboard, etc) or not. * */ updateNumeric(visibleRectAsNumeric: NumericDataRect, isTriggeredByInputDevice?: boolean): void; /** * Fits all plots on chart to view them * */ fitToView(): void; private addMarginToBoundingRect; private static getNextId; getPlotSize(): Size; private createAxis; private static getCommonLayersIds; private static createLayers; eventCallback(event: EventBase, options?: any): void; protected updateLabeledAxesLabels(): void; private buildLegend; dispose(): void; setDataSet(newDataSet: DataSet): void; setHeaderOptions(options: HeaderOptions): void; get minZoomLevel(): number; resize(): void; private onFrameRenderedCycle; protected dimensionalVisibleRectToNumeric(visibleRect: DataRect>): NumericDataRect; protected numericVisibleRectToDimensional(visibleRectAsNumeric: NumericDataRect): DataRect> | undefined; } //# sourceMappingURL=chart.d.ts.map