UNPKG

highcharts

Version:
77 lines (76 loc) 2.2 kB
/* * * * (c) 2010-2021 Torstein Honsi * * License: www.highcharts.com/license * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import SeriesRegistry from '../../Core/Series/SeriesRegistry.js'; var _a = SeriesRegistry.seriesTypes, BubbleSeries = _a.bubble, MapSeries = _a.map; import U from '../../Core/Utilities.js'; var extend = U.extend, merge = U.merge; /* * * * Class * * */ var MapBubblePoint = /** @class */ (function (_super) { __extends(MapBubblePoint, _super); function MapBubblePoint() { return _super !== null && _super.apply(this, arguments) || this; } /* * * * Functions * * */ /* eslint-disable valid-jsdoc */ /** * @private */ MapBubblePoint.prototype.applyOptions = function (options, x) { var point; if (options && typeof options.lat !== 'undefined' && typeof options.lon !== 'undefined') { point = _super.prototype.applyOptions.call(this, merge(options, this.series.chart.fromLatLonToPoint(options)), x); } else { point = MapSeries.prototype.pointClass.prototype .applyOptions.call(this, options, x); } return point; }; /** * @private */ MapBubblePoint.prototype.isValid = function () { return typeof this.z === 'number'; }; return MapBubblePoint; }(BubbleSeries.prototype.pointClass)); extend(MapBubblePoint.prototype, { ttBelow: false }); /* * * * Default Export * * */ export default MapBubblePoint;