| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/KPI monitor/node_modules/highcharts/es-modules/Series/Treegraph/ |
Upload File : |
/* *
*
* (c) 2010-2026 Highsoft AS
* Author: Pawel Lysy Grzegorz Blachlinski
*
* A commercial license may be required depending on use.
* See www.highcharts.com/license
*
*
* */
'use strict';
import Point from '../../Core/Series/Point.js';
import U from '../../Core/Utilities.js';
const { pick, extend } = U;
import SeriesRegistry from '../../Core/Series/SeriesRegistry.js';
const { seriesTypes: { column: { prototype: { pointClass: ColumnPoint } } } } = SeriesRegistry;
/* *
*
* Class
*
* */
/**
* @private
* @class
*/
class LinkPoint extends ColumnPoint {
/* *
*
* Constructor
*
* */
constructor(series, options, x, point) {
super(series, options, x);
/* *
*
* Properties
*
* */
this.dataLabelOnNull = true;
this.formatPrefix = 'link';
this.isLink = true;
this.node = {};
this.formatPrefix = 'link';
this.dataLabelOnNull = true;
if (point) {
this.fromNode = point.node.parentNode.point;
this.visible = point.visible;
this.toNode = point;
this.id = this.toNode.id + '-' + this.fromNode.id;
}
}
/* *
*
* Functions
*
* */
update(options, redraw, animation, runEvent) {
const oldOptions = {
id: this.id,
formatPrefix: this.formatPrefix
};
Point.prototype.update.call(this, options, this.isLink ? false : redraw, // Hold the redraw for nodes
animation, runEvent);
this.visible = this.toNode.visible;
extend(this, oldOptions);
if (pick(redraw, true)) {
this.series.chart.redraw(animation);
}
}
}
/* *
*
* Export Default
*
* */
export default LinkPoint;