'use strict' ; import type { Options } from './Options' ; import type Legend from './Legend/Legend' ; import ChartDefaults from './Chart/ChartDefaults.js' ; import Color from './Color/Color.js' ; const { parse : color } = Color ; import H from './Globals.js' ; const { isTouchDevice , svg } = H ; import { Palette } from './Color/Palettes.js' ; import Palettes from './Color/Palettes.js' ; import Time from './Time.js' ; import U from './Utilities.js' ; const { merge } = U ; declare module './GlobalsLike' { interface GlobalsLike { defaultOptions : Options ; time : Time ; } } declare module './Chart/ChartOptions' { interface ChartOptions { } } declare module './LangOptions' { export interface LangOptions { decimalPoint : string ; invalidDate ? : string ; loading : string ; months : Array < string > ; numericSymbolMagnitude ? : number ; numericSymbols : Array < string > ; resetZoom : string ; resetZoomTitle : string ; shortMonths : Array < string > ; shortWeekdays ? : Array < string > ; thousandsSep : string ; weekdays : Array < string > ; zoomIn ? : string ; zoomOut ? : string ; } } name type { Highcharts . Options } optionparent const defaultOptions = { sample type { Array < Highcharts . ColorString > } default colors : Palettes . colors , type { * } since apioption ignore-option symbols : [ 'circle' , 'diamond' , 'square' , 'triangle' , 'triangle-down' ] , /**
     * The language object is global and it can't be set on each chart
     * initialization. Instead, use `Highcharts.setOptions` to set it before any
     * chart is initialized.
     *
     * ```js
     * Highcharts.setOptions({
     *     lang: {
     *         months: [
     *             'Janvier', 'Février', 'Mars', 'Avril',
     *             'Mai', 'Juin', 'Juillet', 'Août',
     *             'Septembre', 'Octobre', 'Novembre', 'Décembre'
     *         ],
     *         weekdays: [
     *             'Dimanche', 'Lundi', 'Mardi', 'Mercredi',
     *             'Jeudi', 'Vendredi', 'Samedi'
     *         ]
     *     }
     * });
     * ```
     */ lang : { /**
         * The loading text that appears when the chart is set into the loading
         * state following a call to `chart.showLoading`.
         */ loading : 'Loading...' , type { Array < string > } default months : [ 'January' , 'February' , 'March' , 'April' , 'May' , 'June' , 'July' , 'August' , 'September' , 'October' , 'November' , 'December' ] , type { Array < string > } default shortMonths : [ 'Jan' , 'Feb' , 'Mar' , 'Apr' , 'May' , 'Jun' , 'Jul' , 'Aug' , 'Sep' , 'Oct' , 'Nov' , 'Dec' ] , type { Array < string > } default weekdays : [ 'Sunday' , 'Monday' , 'Tuesday' , 'Wednesday' , 'Thursday' , 'Friday' , 'Saturday' ] , sample type { Array < string > } since apioption type { string } since product apioption type { string } default product apioption type { string } default product apioption since decimalPoint : '.' , sample sample type { Array < string > } default since numericSymbols : [ 'k' , 'M' , 'G' , 'T' , 'P' , 'E' ] , sample type { number } default since apioption since resetZoom : 'Reset zoom' , since resetZoomTitle : 'Reset zoom level 1:1' , default since thousandsSep : ' ' } , /**
     * Global options that don't apply to each chart. These options, like
     * the `lang` options, must be set using the `Highcharts.setOptions`
     * method.
     *
     * ```js
     * Highcharts.setOptions({
     *     global: {
     *         useUTC: false
     *     }
     * });
     * ```
     */ deprecated type { string } default product apioption deprecated type { boolean } apioption deprecated type { Function } product apioption deprecated type { Function } product apioption deprecated type { string } product apioption deprecated type { number } product apioption global : { } , sample sample sample since optionparent time : { type { * } since product Date : void 0 , see sample type { Highcharts . TimezoneOffsetCallbackFunction } since product getTimezoneOffset : void 0 , see sample type { string } since product timezone : void 0 , see sample since product timezoneOffset : 0 , sample sample useUTC : true } , chart : ChartDefaults , sample title : { sample sample sample type { boolean } default since apioption sample sample sample type { Highcharts . CSSObject } default default apioption type { boolean } default apioption sample sample type { Highcharts . VerticalAlignValue } since apioption sample sample type { number } default since apioption sample sample type { number } since apioption sample sample default default text : 'Chart title' , sample sample type { Highcharts . AlignValue } since align : 'center' , sample sample sample since margin : 15 , sample since widthAdjust : - 44 } , sample subtitle : { sample sample type { boolean } default since apioption sample sample sample sample sample type { Highcharts . CSSObject } default apioption type { boolean } default apioption sample sample type { Highcharts . VerticalAlignValue } since apioption sample sample type { number } default since apioption sample sample type { number } since apioption sample sample text : '' , sample sample type { Highcharts . AlignValue } since align : 'center' , see sample since widthAdjust : - 44 } , sample since caption : { type { boolean } default apioption /**
         * The margin between the caption and the plot area.
         */ margin : 15 , sample type { Highcharts . CSSObject } default apioption type { boolean } default apioption type { number } default apioption type { number } apioption sample text : '' , type { Highcharts . AlignValue } align : 'left' , type { Highcharts . VerticalAlignValue } verticalAlign : 'bottom' } , /**
     * The plotOptions is a wrapper object for config objects for each series
     * type. The config objects for each series can also be overridden for
     * each series item as given in the series array.
     *
     * Configuration options for the series are given in three levels. Options
     * for all series in a chart are given in the [plotOptions.series](
     * #plotOptions.series) object. Then options for all series of a specific
     * type are given in the plotOptions of that type, for example
     * `plotOptions.line`. Next, options for one single series are given in
     * [the series array](#series).
     */ plotOptions : { } , deprecated product labels : { deprecated type { Array < * > } apioption deprecated type { string } apioption deprecated type { Highcharts . CSSObject } apioption deprecated type { Highcharts . CSSObject } default style : { ignore-option position : 'absolute' , ignore-option color : Palette . neutralColor80 } } , productdesc legend : { see In sample sample sample type { Highcharts . ColorString | Highcharts . GradientColorObject | Highcharts . PatternObject } apioption see In sample sample sample type { number } default apioption sample sample sample default default default enabled : true , sample sample sample type { Highcharts . AlignValue } since align : 'center' , since alignColumns : true , /**
         * A CSS class name to apply to the legend group.
         */ className : 'highcharts-no-tooltip' , sample sample sample type { boolean } default since apioption sample sample sample sample sample sample validvalue layout : 'horizontal' , sample sample type { number } default default default since apioption sample sample type { number } default since apioption sample sample type { number } default since apioption sample sample type { number } since apioption type { string } default since apioption productdesc sample sample type { Highcharts . FormatterCallbackFunction < Point | Series > } labelFormatter : function ( this ) : string { /** eslint-enable valid-jsdoc */ return this . name as any ; } , sample deprecated type { number } default since product apioption sample sample type { number } default since apioption type { number } since apioption see In sample sample sample type { Highcharts . ColorString | Highcharts . GradientColorObject | Highcharts . PatternObject } borderColor : Palette . neutralColor40 , sample sample sample borderRadius : 0 , /**
         * Options for the paging or navigation appearing when the legend is
         * overflown. Navigation works well on screen, but not in static
         * exported images. One way of working around that is to
         * [increase the chart height in
         * export](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/legend/navigation-enabled-false/).
         */ navigation : { sample sample type { boolean | Partial < Highcharts . AnimationOptionsObject > } default since apioption sample sample type { number } default since apioption type { boolean } default since apioption see In sample sample type { Highcharts . CSSObject } since apioption see In sample sample type { Highcharts . ColorString | Highcharts . GradientColorObject | Highcharts . PatternObject } since activeColor : Palette . highlightColor100 , see In sample sample type { Highcharts . ColorString | Highcharts . GradientColorObject | Highcharts . PatternObject } since inactiveColor : Palette . neutralColor20 } , sample sample type { number } default since apioption see sample type { boolean } default since apioption sample type { boolean } default since apioption deprecated type { Highcharts . CSSObject } product apioption see In sample sample type { Highcharts . CSSObject } default itemStyle : { ignore color : Palette . neutralColor80 , ignore cursor : 'pointer' , ignore fontSize : '12px' , ignore fontWeight : 'bold' , ignore textOverflow : 'ellipsis' } , see In sample sample type { Highcharts . CSSObject } default itemHoverStyle : { ignore color : Palette . neutralColor100 } , see In sample type { Highcharts . CSSObject } default itemHiddenStyle : { ignore color : Palette . neutralColor20 } , sample sample sample type { boolean | Highcharts . CSSObject } shadow : false , type { Highcharts . CSSObject } default itemCheckboxStyle : { ignore position : 'absolute' , ignore width : '13px' , ignore height : '13px' } , since squareSymbol : true , productdesc sample sample type { number } since apioption sample sample sample type { number } since apioption productdesc sample sample sample type { number } apioption type { boolean } default apioption sample sample type { number | string } since apioption sample symbolPadding : 5 , sample sample sample type { Highcharts . VerticalAlignValue } since verticalAlign : 'bottom' , sample since x : 0 , sample sample sample since y : 0 , sample sample since title : { type { string } since apioption see In type { Highcharts . CSSObject } default since style : { ignore fontWeight : 'bold' } } } , /**
     * The loading options control the appearance of the loading screen
     * that covers the plot area on chart operations. This screen only
     * appears after an explicit call to `chart.showLoading()`. It is a
     * utility for developers to communicate to the end user that something
     * is going on, for example while retrieving new data via an XHR connection.
     * The "Loading..." text itself is not part of this configuration
     * object, but part of the `lang` object.
     */ loading : { sample type { number } default since apioption sample type { number } default since apioption see In sample sample type { Highcharts . CSSObject } default since labelStyle : { ignore fontWeight : 'bold' , ignore position : 'relative' , ignore top : '45%' } , sample sample type { Highcharts . CSSObject } default since style : { ignore position : 'absolute' , ignore backgroundColor : Palette . backgroundColor , ignore opacity : 0.5 , ignore textAlign : 'center' } } , declare tooltip : { sample sample sample sample type { Highcharts . ColorString | Highcharts . GradientColorObject | Highcharts . PatternObject } apioption type { string } apioption sample deprecated type { * } default apioption type { number } default apioption type { boolean } default default default since apioption type { boolean } default default default since apioption sample sample sample sample sample sample type { Highcharts . TooltipFormatterCallbackFunction } apioption sample type { Highcharts . TooltipFormatterCallbackFunction } apioption sample type { boolean | undefined } default since apioption type { Highcharts . FormatterCallbackFunction < Highcharts . Point > } since context apioption sample sample sample sample sample type { Highcharts . TooltipPositionerCallbackFunction } since apioption productdesc sample sample type { boolean } default default since product apioption sample type { boolean } since apioption sample sample sample type { boolean } default since apioption sample sample type { number | undefined } since apioption sample sample type { string } since apioption sample sample type { string } since apioption sample type { string } product apioption type { number } default since product apioption sample sample enabled : true , type { boolean } default since animation : svg , sample sample sample borderRadius : 3 , see type { Highcharts . Dictionary < string > } product dateTimeLabelFormats : { internal millisecond : '%A, %b %e, %H:%M:%S.%L' , internal second : '%A, %b %e, %H:%M:%S' , internal minute : '%A, %b %e, %H:%M' , internal hour : '%A, %b %e, %H:%M' , internal day : '%A, %b %e, %Y' , internal week : 'Week from %A, %b %e, %Y' , internal month : '%B %Y' , internal year : '%Y' } , sample sample since footerFormat : '' , see sample type { Highcharts . TooltipShapeValue } validvalue since headerShape : 'callout' , since hideDelay : 500 , since padding : 8 , type { Highcharts . TooltipShapeValue } since shape : 'callout' , sample sample sample sample since product shared : false , sample sample type { number } default since product snap : isTouchDevice ? 25 : 10 , sample sample sample type { string } apioption headerFormat : '<span style="font-size: 10px">{point.key}</span><br/>' , sample type { string } apioption sample sample sample type { string } since apioption pointFormat : '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.y}</b><br/>' , sample sample sample sample sample sample sample type { Highcharts . ColorString | Highcharts . GradientColorObject | Highcharts . PatternObject } backgroundColor : color ( Palette . neutralColor3 ) . setOpacity ( 0.85 ) . get ( ) as any , sample sample sample sample sample sample sample borderWidth : 1 , sample sample sample type { boolean | Highcharts . ShadowOptionsObject } shadow : true , sample since stickOnContact : false , sample type { Highcharts . CSSObject } style : { internal color : Palette . neutralColor80 , internal cursor : 'default' , internal fontSize : '12px' , internal whiteSpace : 'nowrap' } , sample sample sample since useHTML : false } , /**
     * Highchart by default puts a credits label in the lower right corner
     * of the chart. This can be changed using these options.
     */ credits : { see see type { string } default since product apioption see see type { string } default since product apioption sample sample sample enabled : true , sample sample href : 'https://www.highcharts.com?credits' , sample sample sample sample type { Highcharts . AlignObject } since position : { internal align : 'right' , internal x : - 10 , internal verticalAlign : 'bottom' , internal y : - 5 } , see In type { Highcharts . CSSObject } style : { internal cursor : 'pointer' , internal color : Palette . neutralColor40 , internal fontSize : '9px' } , productdesc sample sample text : 'Highcharts.com' } } ; ( defaultOptions . chart as any ) . styledMode = true ; ( defaultOptions . chart as any ) . styledMode = false ; '' ; const defaultTime = new Time ( merge ( defaultOptions . global , defaultOptions . time ) ) ; function return { Highcharts . Options } function getOptions ( ) { return defaultOptions ; } sample sample function param { Highcharts . Options } options return { Highcharts . Options } function setOptions ( options ) { merge ( true , defaultOptions , options ) ; if ( options . time || options . global ) { if ( H . time ) { H . time . update ( merge ( defaultOptions . global , defaultOptions . time , options . global , options . time ) ) ; } else { name type { Highcharts . Time } H . time = defaultTime ; } } return defaultOptions ; } const DefaultOptions = { defaultOptions , defaultTime , getOptions , setOptions } ; export default DefaultOptions ; typedef { "plotBox" | "spacingBox" } Highcharts . ButtonRelativeToValue callback Highcharts . ChartAddSeriesCallbackFunction param { Highcharts . Chart } this param { Highcharts . ChartAddSeriesEventObject } event interface name type { Highcharts . SeriesOptionsType } name type { Function } name type { Highcharts . Chart } name type { "addSeries" } callback Highcharts . ChartClickCallbackFunction param { Highcharts . Chart } this param { Highcharts . PointerEventObject } event interface name type { Highcharts . Axis } name type { number } interface extends Highcharts . PointerEventObject name type { Array < Highcharts . ChartClickEventAxisObject > } name type { Array < Highcharts . ChartClickEventAxisObject > } name type { Array < Highcharts . ChartClickEventAxisObject > | undefined } callback Highcharts . ChartLoadCallbackFunction param { Highcharts . Chart } this param { global . Event } event callback Highcharts . ChartRedrawCallbackFunction param { Highcharts . Chart } this param { global . Event } event callback Highcharts . ChartRenderCallbackFunction param { Highcharts . Chart } this param { global . Event } event callback Highcharts . ChartSelectionCallbackFunction param { Highcharts . Chart } this param { global . ChartSelectionContextObject } event return { boolean | undefined } interface extends global . Event name type { Array < Highcharts . ChartSelectionAxisContextObject > } name type { Array < Highcharts . ChartSelectionAxisContextObject > } interface name type { Highcharts . Axis } name type { number } name type { number } ( '' ) ;