UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

27 lines (26 loc) 799 B
import type { DistantObject } from 'ag-charts-core'; import { BBox } from '../bbox'; import type { NodeOptions, RenderContext } from '../node'; import { Shape } from './shape'; export declare class Line<D = unknown> extends Shape<D> implements DistantObject { static readonly className = "Line"; constructor(opts?: NodeOptions); x1: number; y1: number; x2: number; y2: number; set x(value: number); set y(value: number); get midPoint(): { x: number; y: number; }; protected computeBBox(): BBox; isPointInPath(x: number, y: number): boolean; distanceSquared(px: number, py: number): number; render(renderCtx: RenderContext): void; toSVG(): { elements: SVGElement[]; defs?: SVGElement[]; } | undefined; }