TilemapPoint.js 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* *
  2. *
  3. * Tilemaps module
  4. *
  5. * (c) 2010-2021 Highsoft AS
  6. * Author: Øystein Moseng
  7. *
  8. * License: www.highcharts.com/license
  9. *
  10. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  11. *
  12. * */
  13. 'use strict';
  14. var __extends = (this && this.__extends) || (function () {
  15. var extendStatics = function (d, b) {
  16. extendStatics = Object.setPrototypeOf ||
  17. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  18. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  19. return extendStatics(d, b);
  20. };
  21. return function (d, b) {
  22. extendStatics(d, b);
  23. function __() { this.constructor = d; }
  24. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  25. };
  26. })();
  27. import ColorSeriesModule from '../../Mixins/ColorSeries.js';
  28. var colorPointMixin = ColorSeriesModule.colorPointMixin;
  29. import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
  30. var Point = SeriesRegistry.series.prototype.pointClass, HeatmapPoint = SeriesRegistry.seriesTypes.heatmap.prototype.pointClass;
  31. import U from '../../Core/Utilities.js';
  32. var extend = U.extend;
  33. /* *
  34. *
  35. * Class
  36. *
  37. * */
  38. var TilemapPoint = /** @class */ (function (_super) {
  39. __extends(TilemapPoint, _super);
  40. function TilemapPoint() {
  41. /* *
  42. *
  43. * Properties
  44. *
  45. * */
  46. var _this = _super !== null && _super.apply(this, arguments) || this;
  47. _this.options = void 0;
  48. _this.radius = void 0;
  49. _this.series = void 0;
  50. _this.tileEdges = void 0;
  51. return _this;
  52. /* eslint-enable valid-jsdoc */
  53. }
  54. /* *
  55. *
  56. * Functions
  57. *
  58. * */
  59. /* eslint-disable valid-jsdoc */
  60. /**
  61. * @private
  62. * @function Highcharts.Point#haloPath
  63. *
  64. * @return {Highcharts.SVGElement|Highcharts.SVGPathArray|Array<Highcharts.SVGElement>}
  65. */
  66. TilemapPoint.prototype.haloPath = function () {
  67. return this.series.tileShape.haloPath.apply(this, arguments);
  68. };
  69. return TilemapPoint;
  70. }(HeatmapPoint));
  71. extend(TilemapPoint.prototype, {
  72. setState: Point.prototype.setState,
  73. setVisible: colorPointMixin.setVisible
  74. });
  75. /* *
  76. *
  77. * Default Export
  78. *
  79. * */
  80. export default TilemapPoint;