import { XYGlyph, XYGlyphView, XYGlyphData } from "./xy_glyph"; import { PointGeometry, SpanGeometry } from "../../core/geometry"; import { LineVector } from "../../core/property_mixins"; import { Rect } from "../../core/types"; import * as visuals from "../../core/visuals"; import { Context2d } from "../../core/util/canvas"; import { Selection } from "../selections/selection"; import * as p from "../../core/properties"; export interface LineData extends XYGlyphData { } export interface LineView extends LineData { } export declare class LineView extends XYGlyphView { model: Line; visuals: Line.Visuals; protected _render(ctx: Context2d, indices: number[], { sx, sy }: LineData): void; protected _hit_point(geometry: PointGeometry): Selection; protected _hit_span(geometry: SpanGeometry): Selection; get_interpolation_hit(i: number, geometry: PointGeometry | SpanGeometry): [number, number]; draw_legend_for_index(ctx: Context2d, bbox: Rect, index: number): void; } export declare namespace Line { type Attrs = p.AttrsOf; type Props = XYGlyph.Props & LineVector; type Visuals = XYGlyph.Visuals & { line: visuals.Line; }; } export interface Line extends Line.Attrs { } export declare class Line extends XYGlyph { properties: Line.Props; constructor(attrs?: Partial); static initClass(): void; }