123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /*!*
- *
- * Copyright (c) Highsoft AS. All rights reserved.
- *
- *!*/
- import * as globals from "../globals.src";
- import * as _Highcharts from "../highcharts.src";
- /**
- * Adds the module to the imported Highcharts namespace.
- *
- * @param highcharts
- * The imported Highcharts namespace to extend.
- */
- export function factory(highcharts: typeof Highcharts): void;
- declare module "../highcharts.src" {
- interface Point {
- /**
- * The ending X value of the range point.
- */
- x2?: number;
- }
- interface PointOptionsObject {
- /**
- * The ending X value of the range point.
- */
- x2?: number;
- }
- /**
- * Gantt-optimized chart. Use Chart for common charts.
- */
- class GanttChart extends Chart {
- /**
- * Initializes the chart. The constructor's arguments are passed on
- * directly.
- *
- * @param userOptions
- * Custom options.
- *
- * @param callback
- * Function to run when the chart has loaded and and all external
- * images are loaded.
- *
- * @fires Highcharts.GanttChart#init
- * @fires Highcharts.GanttChart#afterInit
- */
- init(userOptions: Options, callback?: Function): void;
- }
- /**
- * The factory function for creating new gantt charts. Creates a new
- * GanttChart object with different default options than the basic Chart.
- *
- * @param renderTo
- * The DOM element to render to, or its id.
- *
- * @param options
- * The chart options structure.
- *
- * @param callback
- * Function to run when the chart has loaded and and all external
- * images are loaded. Defining a chart.events.load handler is
- * equivalent.
- *
- * @return Returns the Chart object.
- */
- function ganttChart(renderTo: (string|HTMLDOMElement), options: Options, callback?: ChartCallbackFunction): GanttChart;
- /**
- * When we have vertical scrollbar, rifles and arrow in buttons should be
- * rotated. The same method is used in Navigator's handles, to rotate them.
- *
- * @param path
- * Path to be rotated.
- *
- * @param vertical
- * If vertical scrollbar, swap x-y values.
- *
- * @return Rotated path.
- */
- function swapXY(path: SVGPathArray, vertical?: boolean): SVGPathArray;
- }
- export default factory;
- export let Highcharts: typeof _Highcharts;
|