debugger.src.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. /**
  2. * @license Highcharts JS v7.0.2 (2019-01-17)
  3. * Debugger module
  4. *
  5. * (c) 2012-2019 Torstein Honsi
  6. *
  7. * License: www.highcharts.com/license
  8. */
  9. 'use strict';
  10. (function (factory) {
  11. if (typeof module === 'object' && module.exports) {
  12. factory['default'] = factory;
  13. module.exports = factory;
  14. } else if (typeof define === 'function' && define.amd) {
  15. define(function () {
  16. return factory;
  17. });
  18. } else {
  19. factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
  20. }
  21. }(function (Highcharts) {
  22. (function (H) {
  23. /* eslint-disable */
  24. /* *
  25. * Error information for the debugger module
  26. * (c) 2010-2019 Torstein Honsi
  27. * License: www.highcharts.com/license
  28. */
  29. // DO NOT EDIT!
  30. // Automatically generated by ./tools/error-messages.js
  31. // Sources can be found in ./errors/*/*.md
  32. H.errorMessages = {
  33. "10": {
  34. "title": "Can't plot zero or subzero values on a logarithmic axis",
  35. "text": "<h1>Can't plot zero or subzero values on a logarithmic axis</h1><p>This error occurs in the following situations: </p><ul><li>If a zero or subzero data value is added to a logarithmic axis</li><li>If the minimum of a logarithimic axis is set to 0 or less</li><li>If the threshold is set to 0 or less</li></ul><p>Note: As of Highcharts 5.0.8 it's possible to bypass this error message by setting <code>Axis.prototype.allowNegativeLog</code> to true, and add custom conversion functions. <a href=\"https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/samples/highcharts/yaxis/type-log-negative/\">View live demo</a>.</p>",
  36. "enduser": "<h1>Can't plot zero or subzero values on a logarithmic axis</h1><p>This error occurs in the following situations:</p><p>* If a zero or subzero data value is added to a logarithmic axis</p><p>* If the minimum of a logarithimic axis is set to 0 or less</p><p>* If the threshold is set to 0 or less</p><p>As of Highcharts 5.0.8 it's possible to bypass this error message by setting <code>Axis.prototype.allowNegativeLog</code> to <code>true</code> and add custom conversion functions. <a href=\"http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/samples/highcharts/yaxis/type-log-negative/\">\">View Live Demo</a>.</p>"
  37. },
  38. "11": {
  39. "title": "Can't link axes of different type",
  40. "text": "<h1>Can't link axes of different type</h1><p>This error occurs when using the <code>linkedTo</code> option to link two axes of different types, for example a logarithmic axis to a linear axis. Highcharts can't link these because the calculation of ticks, extremes, padding etc. is different.</p>"
  41. },
  42. "12": {
  43. "title": "Highcharts expects point configuration to be numbers or arrays in turbo mode",
  44. "text": "<h1>Highcharts expects point configuration to be numbers or arrays in turbo mode</h1><p>This error occurs if the series.data option contains object configurations and the number of points exceeds the turboThreshold. It can be fixed by either setting <code>turboThreshold</code> to a higher value, or changing the point configurations to numbers or arrays.</p><p>See <a href=\"https://api.highcharts.com/highcharts#plotOptions.series.turboThreshold\">plotOptions.series.turboThreshold</a></p>"
  45. },
  46. "13": {
  47. "title": "Rendering div not found",
  48. "text": "<h1>Rendering div not found</h1><p>This error occurs if the <a href=\"https://api.highcharts.com/highcharts#chart.renderTo\">chart.renderTo</a> option is misconfigured so that Highcharts is unable to find the HTML element to render the chart in.</p><p>If using a DOM ID when creating the chart, make sure a node with the same ID exists somewhere in the DOM.</p>"
  49. },
  50. "14": {
  51. "title": "String value sent to series.data, expected Number",
  52. "text": "<h1>String value sent to series.data, expected Number</h1><p>This happens if using a string as a data point, for example in a setup like this: </p><pre>series: [{\n data: [&quot;3&quot;, &quot;5&quot;, &quot;1&quot;, &quot;6&quot;]\n}]</pre><p>Highcharts expects numerical data values.</p><p>The most common reason for this error this is that data is parsed from CSV or</p><p>from a XML source, and the implementer forgot to run <code>parseFloat</code></p><p>on the parsed value.</p><p>Note: For performance reasons internal type casting is not performed, and only the first value is checked (since 2.3).</p>"
  53. },
  54. "15": {
  55. "title": "Highcharts expects data to be sorted",
  56. "text": "<h1>Highcharts expects data to be sorted</h1><p>This happens when creating a line series or a stock chart where the data is not sorted in ascending X order.</p><p>For performance reasons, Highcharts does not sort the data, instead it requires that the implementer pre-sorts the data.</p>"
  57. },
  58. "16": {
  59. "title": "Highcharts already defined in the page",
  60. "text": "<h1>Highcharts already defined in the page</h1><p>This error happens if the <code>Highcharts</code> namespace already exists when loading</p><p>Highcharts or Highstock.</p><p>This is caused by including Highcharts or Highstock more than once.</p><p>Keep in mind that the <code>Highcharts.Chart</code> constructor and all features of Highcharts are included in Highstock, so if using the <code>Chart</code> and <code>StockChart</code> constructors in combination, only the <code>highstock.js</code> file is required.</p>"
  61. },
  62. "17": {
  63. "title": "The requested series type does not exist",
  64. "text": "<h1>The requested series type does not exist</h1><p>This error happens when setting <code>chart.type</code> or <code>series.type</code> to a series type that isn't defined in Highcharts. A typical reason may be that the</p><p>module or extension where the series type is defined isn't included.</p><p>For example in order to create an <code>arearange</code> series, the <code>highcharts-more.js</code> file must be loaded.</p>"
  65. },
  66. "18": {
  67. "title": "The requested axis does not exist",
  68. "text": "<h1>The requested axis does not exist</h1><p>This error happens when setting a series' <code>xAxis</code> or <code>yAxis</code> property to point to an axis that does not exist.</p>"
  69. },
  70. "19": {
  71. "title": "Too many ticks",
  72. "text": "<h1>Too many ticks</h1><p>This error happens when applying too many ticks to an axis, specifically when adding more ticks than the axis pixel length.</p><p>With default value this won't happen, but there are edge cases, for example when setting axis categories and <code>xAxis.labels.step</code> in combination with a long data range, when the axis is instructed to create a great number of ticks.</p>"
  73. },
  74. "20": {
  75. "title": "Can't add object point configuration to a long data series",
  76. "text": "<h1>Can't add object point configuration to a long data series</h1><p>In Highstock, when trying to add a point using the object literal configuration syntax, it will only work when the number of data points is below the series' <a href=\"https://api.highcharts.com/highstock#plotOptions.series.turboThreshold\">turboThreshold</a>. Instead of the object syntax, use the Array syntax.</p>"
  77. },
  78. "21": {
  79. "title": "Can't find Proj4js library",
  80. "text": "<h1>Can't find Proj4js library</h1><p>Using latitude/longitude functionality in Highmaps requires the <a href=\"http://proj4js.org\">Proj4js</a> library to be loaded.</p>"
  81. },
  82. "22": {
  83. "title": "Map does not support latitude/longitude",
  84. "text": "<h1>Map does not support latitude/longitude</h1><p>The loaded map does not support latitude/longitude functionality. This is only supported with maps from the <a href=\"https://code.highcharts.com/mapdata\">official Highmaps map collection</a> from version 1.1.0 onwards. If you are using a custom map, consider using the <a href=\"https://proj4js.org\">Proj4js</a> library to convert between projections.</p>"
  85. },
  86. "23": {
  87. "title": "Unsupported color format used for color interpolation",
  88. "text": "<h1>Unsupported color format used for color interpolation</h1><p>Highcharts supports three color formats primarily: hex (`#FFFFFF`), rgb (<code>rgba(255,255,255)</code>) and rgba (<code>rgba(255,255,255,1)</code>). If any other format, like 3-digit colors (`#FFF`), named colors (<code>white</code>) or gradient structures are used in for example a heatmap, Highcharts will fail to interpolate and will</p><p>instead use the end-color with no interpolation applied.</p><p>We've chosen to preserve this limitation in order to keep the weight of the implementation at a minimum.</p>"
  89. },
  90. "24": {
  91. "title": "Cannot run Point.update on a grouped point",
  92. "text": "<h1>Cannot run Point.update on a grouped point</h1><p>Running <code>Point.update</code> in Highstock when a point is grouped by data grouping is not supported.</p><p>This is not supported because when data grouping is enabled, there won't be any</p><p>references to the raw points, which is required by the <code>Point.update</code> function.</p>"
  93. },
  94. "25": {
  95. "title": "Can't find Moment.js library",
  96. "text": "<h1>Can't find Moment.js library</h1><p>Using the global.timezone option requires the <a href=\"https://momentjs.com/\">Moment.js</a> library to be loaded.</p>"
  97. },
  98. "26": {
  99. "title": "WebGL not supported, and no fallback module included",
  100. "text": "<h1>WebGL not supported, and no fallback module included</h1><p>This happens when the browser doesn't support WebGL,<b>and</b> the canvas fallback module (<code>boost-canvas.js</code>) hasn't been included OR if the fallback module was included<b>after</b> the boost module.</p><p>If a fallback is required, make sure to include <code>boost-canvas.js</code>, and that it's included before <code>boost.js</code>.</p><p>Please note that the fallback module is not intended as a fully-featured one. Rather, it's a minimal implementation of the WebGL counterpart.</p>"
  101. },
  102. "27": {
  103. "title": "This browser does not support SVG",
  104. "text": "<h1>This browser does not support SVG</h1><p>This happens in old IE when the <code>oldie.js</code> module isn't loaded.</p><p>If compatibility with IE versions 6, 7 and 8 is required, add the module after</p><p>loading <code>highcharts.js</code>. In a website context, it's a good idea to load it in a conditional comment to avoid traffic overhead and dead code in modern browsers: </p><pre>&lt;!--[if lt IE 9]&gt;\n &lt;script src='https://code.highcharts.com/modules/oldie.js'&gt;&lt;/script&gt;\n&lt;![endif]--&gt;</pre>"
  105. },
  106. "28": {
  107. "title": "Fallback to export server disabled",
  108. "text": "<h1>Fallback to export server disabled</h1><p>This happens when the offline export module encounters a chart that it can't</p><p>export successfully, and the fallback to the online export server is disabled. The offline exporting module will fail for certain browsers, and certain</p><p>features (e.g. <a href=\"https://api.highcharts.com/highcharts/exporting.allowHTML\">exporting.allowHTML</a> ), depending on the type of image exporting to. For a compatibility overview, see <a href=\"https://www.highcharts.com/docs/export-module/client-side-export\">Client Side Export</a>.</p><p>For very complex charts, it's possible that exporting fail in browsers that don't support Blob objects, due to data URL length limits. It's always recommended to define the <a href=\"https://api.highcharts.com/highcharts/exporting.error\">exporting.error</a> callback when disabling the fallback, so that details can be provided to the end-user if offline export isn't working for them.</p>"
  109. },
  110. "29": {
  111. "title": "Browser does not support WebAudio",
  112. "text": "<h1>Browser does not support WebAudio</h1><p>This happens when you attempt to use the sonification module on a chart in a browser or environment that does not support the WebAudio API. This API is supported on all modern browsers, including Microsoft Edge, Google Chrome and Mozilla Firefox.</p>"
  113. },
  114. "30": {
  115. "title": "Invalid instrument",
  116. "text": "<h1>Invalid instrument</h1><p>This happens when you try to use a sonification instrument that is not valid. If you are using a predefined instrument, make sure your spelling is correct.</p>"
  117. },
  118. "meta": {
  119. "files": [
  120. "errors/10/readme.md",
  121. "errors/10/enduser.md",
  122. "errors/11/readme.md",
  123. "errors/12/readme.md",
  124. "errors/13/readme.md",
  125. "errors/14/readme.md",
  126. "errors/15/readme.md",
  127. "errors/16/readme.md",
  128. "errors/17/readme.md",
  129. "errors/18/readme.md",
  130. "errors/19/readme.md",
  131. "errors/20/readme.md",
  132. "errors/21/readme.md",
  133. "errors/22/readme.md",
  134. "errors/23/readme.md",
  135. "errors/24/readme.md",
  136. "errors/25/readme.md",
  137. "errors/26/readme.md",
  138. "errors/27/readme.md",
  139. "errors/28/readme.md",
  140. "errors/29/readme.md",
  141. "errors/30/readme.md"
  142. ]
  143. }
  144. };
  145. }(Highcharts));
  146. (function (H) {
  147. /* *
  148. *
  149. * (c) 2010-2019 Torstein Honsi
  150. *
  151. * License: www.highcharts.com/license
  152. *
  153. * */
  154. var addEvent = H.addEvent,
  155. isNumber = H.isNumber,
  156. setOptions = H.setOptions,
  157. each = H.each;
  158. setOptions({
  159. /**
  160. * @optionparent chart
  161. */
  162. chart: {
  163. /**
  164. * Whether to display errors on the chart. When `false`, the errors will
  165. * be shown only in the console.
  166. *
  167. * Requires `debugger.js` module.
  168. *
  169. * @sample highcharts/chart/display-errors/
  170. * Show errors on chart
  171. *
  172. * @since 7.0.0
  173. */
  174. displayErrors: true
  175. }
  176. });
  177. addEvent(H.Chart, 'displayError', function (e) {
  178. var chart = this,
  179. code = e.code,
  180. msg,
  181. options = chart.options.chart,
  182. renderer = chart.renderer,
  183. chartWidth,
  184. chartHeight;
  185. if (chart.errorElements) {
  186. each(chart.errorElements, function (el) {
  187. if (el) {
  188. el.destroy();
  189. }
  190. });
  191. }
  192. if (options && options.displayErrors) {
  193. chart.errorElements = [];
  194. msg = isNumber(code) ? 'Highcharts error #' + code + ': ' +
  195. H.errorMessages[code].title + H.errorMessages[code].text : code;
  196. chartWidth = chart.chartWidth;
  197. chartHeight = chart.chartHeight;
  198. // Render red chart frame.
  199. chart.errorElements[0] = renderer.rect(
  200. 2,
  201. 2,
  202. chartWidth - 4,
  203. chartHeight - 4
  204. ).attr({
  205. 'stroke-width': 4,
  206. stroke: '#ff0000',
  207. zIndex: 3
  208. }).add();
  209. // Render error message.
  210. chart.errorElements[1] = renderer.label(
  211. msg,
  212. 0,
  213. 0,
  214. 'rect',
  215. null,
  216. null,
  217. true
  218. ).css({
  219. color: '#ffffff',
  220. width: chartWidth - 16,
  221. padding: 0
  222. }).attr({
  223. fill: '#ff0000',
  224. width: chartWidth,
  225. padding: 8,
  226. zIndex: 10
  227. }).add();
  228. chart.errorElements[1].attr({
  229. y: chartHeight - this.errorElements[1].getBBox().height
  230. });
  231. }
  232. });
  233. addEvent(H.Chart, 'beforeRedraw', function () {
  234. var errorElements = this.errorElements;
  235. if (errorElements && errorElements.length) {
  236. each(errorElements, function (el) {
  237. el.destroy();
  238. });
  239. }
  240. this.errorElements = null;
  241. });
  242. }(Highcharts));
  243. return (function () {
  244. }());
  245. }));