@equinor/videx-wellog
Version:
Visualisation components for wellbore log data
28 lines (27 loc) • 949 B
TypeScript
import Plot from './plot';
import { PlotData, DifferentialPlotOptions, PlotOptions } from './interfaces';
import { Scale, Range } from '../common/interfaces';
/**
* Differential plot
*/
export default class DifferentialPlot extends Plot<DifferentialPlotOptions> {
scale1: Scale;
scale2: Scale;
data: [PlotData, PlotData];
extent: [number, number];
constructor(id: string | number, options?: DifferentialPlotOptions);
setData(data: any, scale?: Scale, plotOptions?: Map<string | number, PlotOptions>): DifferentialPlot;
/**
* Override of base to support multiple scales
*/
setRange(range: Range): DifferentialPlot;
/**
* Update plot options
*/
setOption(key: string, value: any): DifferentialPlot;
updateDynamicScale(data: any, graphOptions: any): void;
/**
* Renders differential plot to canvas context
*/
plot(ctx: CanvasRenderingContext2D, scale: Scale): void;
}