drilldown.src.d.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*!*
  2. *
  3. * Copyright (c) Highsoft AS. All rights reserved.
  4. *
  5. *!*/
  6. import * as globals from "../globals.src";
  7. import * as _Highcharts from "../highcharts.src";
  8. /**
  9. * Adds the module to the imported Highcharts namespace.
  10. *
  11. * @param highcharts
  12. * The imported Highcharts namespace to extend.
  13. */
  14. export function factory(highcharts: typeof Highcharts): void;
  15. declare module "../highcharts.src" {
  16. interface Chart {
  17. /**
  18. * Add a series to the chart as drilldown from a specific point in the
  19. * parent series. This method is used for async drilldown, when clicking
  20. * a point in a series should result in loading and displaying a more
  21. * high-resolution series. When not async, the setup is simpler using
  22. * the drilldown.series options structure.
  23. *
  24. * @param point
  25. * The point from which the drilldown will start.
  26. *
  27. * @param options
  28. * The series options for the new, detailed series.
  29. */
  30. addSeriesAsDrilldown(point: Point, options: SeriesOptionsType): void;
  31. /**
  32. * When the chart is drilled down to a child series, calling
  33. * `chart.drillUp()` will drill up to the parent series.
  34. */
  35. drillUp(): void;
  36. }
  37. interface SVGElement {
  38. /**
  39. * A general fadeIn method.
  40. *
  41. * @param animation
  42. * The animation options for the element fade.
  43. */
  44. fadeIn(animation?: (boolean|Partial<AnimationOptionsObject>)): void;
  45. }
  46. }
  47. export default factory;
  48. export let Highcharts: typeof _Highcharts;