UNPKG

@carbon/charts

Version:
31 lines (30 loc) 1 kB
import { Selection } from 'd3'; import { Component } from '../component'; import { RenderTypes } from '../../interfaces/enums'; export type GenericSvgSelection = Selection<SVGGraphicsElement, any, Element, any>; export declare class Ruler extends Component { type: string; renderType: RenderTypes; backdrop: GenericSvgSelection; elementsToHighlight: GenericSvgSelection; pointsWithinLine: { domainValue: number; originalData: any; }[]; isXGridEnabled: any; isYGridEnabled: any; isEventListenerAdded: boolean; render(animate?: boolean): void; removeBackdropEventListeners(): void; formatTooltipData(tooltipData: any): any; showRuler(event: CustomEvent, [x, y]: [ number, number ]): void; hideRuler(): void; /** * Adds the listener on the X grid to trigger multiple point tooltips along the x axis. */ addBackdropEventListeners(): void; drawBackdrop(): void; }