UNPKG

@future-grid/fgp-graph

Version:

fgp-graph is a chart lib based on Dygraphs

25 lines (24 loc) 690 B
import Dygraph from "dygraphs"; export default class RectSelection { onSelect?: ((series: string[]) => void) | undefined; private g?; private readonly canvas; private drawable; private mousePosition; /** * rect selection plugin * @param onSelect callback func */ constructor(onSelect?: ((series: string[]) => void) | undefined); activate: (graph: Dygraph) => void; private interactions; /** * dynamic set callback func * @param onSelect */ setCallback: (onSelect?: ((series: string[]) => void) | undefined) => void; enable: () => void; disable: () => void; clear: () => void; destroy: () => void; }