mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
updating highmaps
This commit is contained in:
Vendored
+55
-2
@@ -3,11 +3,64 @@
|
||||
// Definitions by: Albert Ozimek <https://github.com/AlbertOzimek>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { Static } from 'highcharts';
|
||||
import * as highcharts from 'highcharts';
|
||||
import * as geojson from 'geojson';
|
||||
|
||||
declare module 'highcharts' {
|
||||
export interface Static {
|
||||
mapChart(renderTo: string | HTMLElement, options: Options, callback?: (chart: ChartObject) => void): ChartObject;
|
||||
mapChart(renderTo: string | HTMLElement, options: MapOptions, callback?: (chart: highcharts.ChartObject) => void): highcharts.ChartObject;
|
||||
}
|
||||
|
||||
export interface MapOptions {
|
||||
chart?: highcharts.ChartOptions;
|
||||
|
||||
legend?: highcharts.LegendOptions;
|
||||
|
||||
mapNavigation?: Navigation;
|
||||
|
||||
series?: MapSeriesOptions[];
|
||||
|
||||
colorAxis?: ColorAxis;
|
||||
|
||||
title?: highcharts.TitleOptions;
|
||||
}
|
||||
|
||||
interface MapSeriesOptions {
|
||||
data?: number[] | [number, number][] | [string, number][] | highcharts.DataPoint[];
|
||||
|
||||
dataLabels?: MapSeriesOptionsDataLabels;
|
||||
|
||||
joinBy?: Array<string>;
|
||||
|
||||
mapData?: geojson.GeoJsonObject;
|
||||
|
||||
name?: string;
|
||||
|
||||
states?: MapSeriesOptionsStates;
|
||||
|
||||
tooltip?: MapSeriesOptionsTooltip;
|
||||
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface Navigation {
|
||||
|
||||
}
|
||||
|
||||
export interface MapSeriesOptionsDataLabels {
|
||||
|
||||
}
|
||||
|
||||
export interface MapSeriesOptionsStates {
|
||||
|
||||
}
|
||||
|
||||
export interface MapSeriesOptionsTooltip {
|
||||
|
||||
}
|
||||
|
||||
export interface ColorAxis {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user