UNPKG

highcharts

Version:
65 lines (64 loc) 1.45 kB
/* * * * (c) 2010-2026 Highsoft AS * Author: Torstein Hønsi * * Integration of this software requires a license. * - For commercial use, see www.highcharts.com/license * - For non-commercial, see www.highcharts.com/license-eula * * * */ 'use strict'; import Point from '../../Core/Series/Point.js'; import SeriesRegistry from '../../Core/Series/SeriesRegistry.js'; import { extend } from '../../Shared/Utilities.js'; const { seriesTypes: { scatter: { prototype: { pointClass: ScatterPoint } } } } = SeriesRegistry; /* * * * Class * * */ /** * @internal */ class BubblePoint extends ScatterPoint { /* * * * Functions * * */ /** * @internal */ haloPath(size) { const computedSize = (size && this.marker ? this.marker.radius || 0 : 0) + size; if (this.series.chart.inverted) { const pos = this.pos() || [0, 0], { xAxis, yAxis, chart } = this.series, diameter = computedSize * 2; return chart.renderer.symbols.circle((xAxis?.len || 0) - pos[1] - computedSize, (yAxis?.len || 0) - pos[0] - computedSize, diameter, diameter); } return Point.prototype.haloPath.call(this, // #6067 computedSize); } } /* * * * Class Prototype * * */ extend(BubblePoint.prototype, { ttBelow: false }); /* * * * Default Export * * */ /** * @internal */ export default BubblePoint;