| 83 | } |
| 84 | |
| 85 | export interface Chart extends Store { |
| 86 | id: string |
| 87 | getDom: (paneId?: string, position?: DomPosition) => Nullable<HTMLElement> |
| 88 | getSize: (paneId?: string, position?: DomPosition) => Nullable<Bounding> |
| 89 | createIndicator: (value: string | IndicatorCreate, options?: CreateIndicatorOptions) => Nullable<string> |
| 90 | getIndicators: (filter?: IndicatorFilter) => Indicator[] |
| 91 | createOverlay: (value: string | OverlayCreate | Array<string | OverlayCreate>) => Nullable<string> | Array<Nullable<string>> |
| 92 | getOverlays: (filter?: OverlayFilter) => Overlay[] |
| 93 | setPaneOptions: (options: PaneOptions) => void |
| 94 | overrideYAxis: (xAxis: XAxisOverride) => void |
| 95 | overrideXAxis: (yAxis: YAxisOverride) => void |
| 96 | getPaneOptions: (id?: string) => Nullable<PaneOptions> | PaneOptions[] |
| 97 | scrollByDistance: (distance: number, animationDuration?: number) => void |
| 98 | scrollToRealTime: (animationDuration?: number) => void |
| 99 | scrollToDataIndex: (dataIndex: number, animationDuration?: number) => void |
| 100 | scrollToTimestamp: (timestamp: number, animationDuration?: number) => void |
| 101 | zoomAtCoordinate: (scale: number, coordinate?: Coordinate, animationDuration?: number) => void |
| 102 | zoomAtDataIndex: (scale: number, dataIndex: number, animationDuration?: number) => void |
| 103 | zoomAtTimestamp: (scale: number, timestamp: number, animationDuration?: number) => void |
| 104 | convertToPixel: (points: Partial<Point> | Array<Partial<Point>>, filter?: ConvertFilter) => Partial<Coordinate> | Array<Partial<Coordinate>> |
| 105 | convertFromPixel: (coordinates: Array<Partial<Coordinate>>, filter?: ConvertFilter) => Partial<Point> | Array<Partial<Point>> |
| 106 | executeAction: (type: ActionType, data: Crosshair) => void |
| 107 | subscribeAction: (type: ActionType, callback: ActionCallback) => void |
| 108 | unsubscribeAction: (type: ActionType, callback?: ActionCallback) => void |
| 109 | getConvertPictureUrl: (includeOverlay?: boolean, type?: 'png' | 'jpeg' | 'bmp', backgroundColor?: string) => string |
| 110 | resize: () => void |
| 111 | } |
| 112 | |
| 113 | export default class ChartImp implements Chart { |
| 114 | id: string |
nothing calls this directly
no outgoing calls
no test coverage detected