import Konva from "konva"; import { PlotOptions, PlotOptionsClass } from "../../options"; import { ChartRenderableItem } from "../chart-renderable-item"; import { DataTransformation, Margin, NumericDataRect, NumericPoint } from "../../geometry"; import { DataSet, DataSetChange, DataSetEventType, DimensionValue } from "../../data"; import { MetricDependantValue, Palette } from "./metric"; import { IDisposable } from "../../i-disposable"; import { ACEventTarget, EventBase, EventListener } from "../../events"; import { AnimationEventType } from "./event"; import { Color } from "../../color"; export declare abstract class Plot extends ChartRenderableItem implements EventListener, IDisposable { protected dataSet: DataSet; protected visible: NumericDataRect | undefined; protected screen: NumericDataRect | undefined; protected dataTransformation: DataTransformation; protected plotOptions: PlotOptionsClassType; private metricPoints1DMap; readonly eventTarget: ACEventTarget; protected static readonly errors: { doesntSupport2DData: string; }; protected layerId: string; protected shapesGroup: Konva.Group; protected constructor(dataSet: DataSet, dataTransformation: DataTransformation, plotOptions: PlotOptionsType); protected buildPlotOptionsClass(plotOptions: PlotOptionsType): PlotOptionsClassType; protected init(plotOptions: PlotOptionsClassType): void; eventCallback(event: EventBase, options?: any): void; protected updateFromDataSet(dataSetChange: DataSetChange): void; protected reinitOnDataSetUpdate(): void; /** * Sets visible and screen rectangle of plot * @param {DataRect} visible - Visible rectangle of plot. * @param {DataRect} screen - Screen rectangle of plot. */ updateVisibleAndScreen(visible: NumericDataRect, screen: NumericDataRect): void; protected abstract rebuildShapesFromDataSet(dataSetChange: DataSetChange): void; protected abstract updateShapesVisibleAndScreen(dataTransformation: DataTransformation, visible: NumericDataRect, screen: NumericDataRect): void; protected clearPreCalculatedDataSetRelatedData(): void; protected getColor(color: Color | Palette, xDimVal: DimensionValue, yDimVal?: DimensionValue> | undefined): Color; protected getDependantNumericValueForMetricValue(dependant: MetricDependantValue, xDimVal: DimensionValue, YDimVal: DimensionValue> | undefined): number | undefined; protected getMetricPoints1D(metricId: string): Array> | undefined; protected getMetricPoint1D(metricId: string, xDimension: DimensionValue): NumericPoint | Array | undefined; protected getSingleMetricPoints1D(metricId: string): Array | undefined; protected getArrayMetricPoints1D(metricId: string): Array> | undefined; protected getSingleMetricPoint1D(metricId: string, xDimension: DimensionValue): NumericPoint | undefined; /** * Calculates bounding rectangle of this plot. * */ abstract getBoundingRectangle(): NumericDataRect | undefined; getFitToViewMargin(): Margin; dispose(): void; protected clearShapes(): void; setDataSet(newDataSet: DataSet): void; } //# sourceMappingURL=plot.d.ts.map