BubblePoint.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* *
  2. *
  3. * (c) 2010-2021 Torstein Honsi
  4. *
  5. * License: www.highcharts.com/license
  6. *
  7. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  8. *
  9. * */
  10. 'use strict';
  11. var __extends = (this && this.__extends) || (function () {
  12. var extendStatics = function (d, b) {
  13. extendStatics = Object.setPrototypeOf ||
  14. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  15. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  16. return extendStatics(d, b);
  17. };
  18. return function (d, b) {
  19. extendStatics(d, b);
  20. function __() { this.constructor = d; }
  21. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  22. };
  23. })();
  24. import Point from '../../Core/Series/Point.js';
  25. import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
  26. var ScatterPoint = SeriesRegistry.seriesTypes.scatter.prototype.pointClass;
  27. import U from '../../Core/Utilities.js';
  28. var extend = U.extend;
  29. /* *
  30. *
  31. * Class
  32. *
  33. * */
  34. var BubblePoint = /** @class */ (function (_super) {
  35. __extends(BubblePoint, _super);
  36. function BubblePoint() {
  37. /* *
  38. *
  39. * Properties
  40. *
  41. * */
  42. var _this = _super !== null && _super.apply(this, arguments) || this;
  43. _this.options = void 0;
  44. _this.series = void 0;
  45. return _this;
  46. /* eslint-enable valid-jsdoc */
  47. }
  48. /* *
  49. *
  50. * Functions
  51. *
  52. * */
  53. /* eslint-disable valid-jsdoc */
  54. /**
  55. * @private
  56. */
  57. BubblePoint.prototype.haloPath = function (size) {
  58. return Point.prototype.haloPath.call(this,
  59. // #6067
  60. size === 0 ? 0 : (this.marker ? this.marker.radius || 0 : 0) + size);
  61. };
  62. return BubblePoint;
  63. }(ScatterPoint));
  64. extend(BubblePoint.prototype, {
  65. ttBelow: false
  66. });
  67. /* *
  68. *
  69. * Default Export
  70. *
  71. * */
  72. export default BubblePoint;