WordcloudPoint.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* *
  2. *
  3. * Experimental Highcharts module which enables visualization of a word cloud.
  4. *
  5. * (c) 2016-2021 Highsoft AS
  6. * Authors: Jon Arild Nygard
  7. *
  8. * License: www.highcharts.com/license
  9. *
  10. * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
  11. * */
  12. var __extends = (this && this.__extends) || (function () {
  13. var extendStatics = function (d, b) {
  14. extendStatics = Object.setPrototypeOf ||
  15. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  16. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  17. return extendStatics(d, b);
  18. };
  19. return function (d, b) {
  20. extendStatics(d, b);
  21. function __() { this.constructor = d; }
  22. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  23. };
  24. })();
  25. import DrawPointMixin from '../../Mixins/DrawPoint.js';
  26. import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
  27. var ColumnSeries = SeriesRegistry.seriesTypes.column;
  28. import U from '../../Core/Utilities.js';
  29. var extend = U.extend;
  30. var WordcloudPoint = /** @class */ (function (_super) {
  31. __extends(WordcloudPoint, _super);
  32. function WordcloudPoint() {
  33. var _this = _super !== null && _super.apply(this, arguments) || this;
  34. /* *
  35. *
  36. * Properties
  37. *
  38. * */
  39. _this.dimensions = void 0;
  40. _this.options = void 0;
  41. _this.polygon = void 0;
  42. _this.rect = void 0;
  43. _this.series = void 0;
  44. return _this;
  45. }
  46. /* *
  47. *
  48. * Functions
  49. *
  50. * */
  51. WordcloudPoint.prototype.shouldDraw = function () {
  52. var point = this;
  53. return !point.isNull;
  54. };
  55. WordcloudPoint.prototype.isValid = function () {
  56. return true;
  57. };
  58. return WordcloudPoint;
  59. }(ColumnSeries.prototype.pointClass));
  60. extend(WordcloudPoint.prototype, {
  61. draw: DrawPointMixin.drawPoint,
  62. weight: 1
  63. });
  64. export default WordcloudPoint;