whychdw
2019-09-09 c0b9ce437d409b89ca0e5388344ca9c5a56d70a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/* *
 *
 *  (c) 2010-2019 Torstein Honsi
 *
 *  License: www.highcharts.com/license
 *
 *  !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
 *
 * */
'use strict';
/* globals Image, window */
/**
 * Reference to the global SVGElement class as a workaround for a name conflict
 * in the Highcharts namespace.
 *
 * @global
 * @typedef {global.SVGElement} GlobalSVGElement
 *
 * @see https://developer.mozilla.org/en-US/docs/Web/API/SVGElement
 */
// glob is a temporary fix to allow our es-modules to work.
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
var glob = typeof win === 'undefined' ? typeof window !== 'undefined' ? window : {} : win,
    doc = glob.document,
    SVG_NS = 'http://www.w3.org/2000/svg',
    userAgent = glob.navigator && glob.navigator.userAgent || '',
    svg = doc && doc.createElementNS && !!doc.createElementNS(SVG_NS, 'svg').createSVGRect,
    isMS = /(edge|msie|trident)/i.test(userAgent) && !glob.opera,
    isFirefox = userAgent.indexOf('Firefox') !== -1,
    isChrome = userAgent.indexOf('Chrome') !== -1,
    hasBidiBug = isFirefox && parseInt(userAgent.split('Firefox/')[1], 10) < 4 // issue #38
;
var H = {
  product: 'Highcharts',
  version: '7.1.3',
  deg2rad: Math.PI * 2 / 360,
  doc: doc,
  hasBidiBug: hasBidiBug,
  hasTouch: !!win.TouchEvent,
  isMS: isMS,
  isWebKit: userAgent.indexOf('AppleWebKit') !== -1,
  isFirefox: isFirefox,
  isChrome: isChrome,
  isSafari: !isChrome && userAgent.indexOf('Safari') !== -1,
  isTouchDevice: /(Mobile|Android|Windows Phone)/.test(userAgent),
  SVG_NS: SVG_NS,
  chartCount: 0,
  seriesTypes: {},
  symbolSizes: {},
  svg: svg,
  win: glob,
  marginNames: ['plotTop', 'marginRight', 'marginBottom', 'plotLeft'],
  noop: function noop() {},
  /**
   * An array containing the current chart objects in the page. A chart's
   * position in the array is preserved throughout the page's lifetime. When
   * a chart is destroyed, the array item becomes `undefined`.
   *
   * @name Highcharts.charts
   * @type {Array<Highcharts.Chart|undefined>}
   */
  charts: [],
  /**
   * A hook for defining additional date format specifiers. New
   * specifiers are defined as key-value pairs by using the
   * specifier as key, and a function which takes the timestamp as
   * value. This function returns the formatted portion of the
   * date.
   *
   * @sample highcharts/global/dateformats/
   *         Adding support for week number
   *
   * @name Highcharts.dateFormats
   * @type {Highcharts.Dictionary<Highcharts.TimeFormatCallbackFunction>}
   */
  dateFormats: {}
};
exports.default = H;