UNPKG

@amcharts/amcharts5

Version:
28 lines 912 B
import { Graphics } from "../../core/render/Graphics"; import { Percent } from "../../core/util/Percent"; /** * A base class for a flow link. */ export class FlowLink extends Graphics { _changed() { super._changed(); if (this.isDirty("fillStyle") || this.isDirty("strokeStyle")) { const series = this.series; const dataItem = this.dataItem; if (series && dataItem) { series._updateLinkColor(dataItem); } } } _getTooltipPoint() { let tooltipY = this.get("tooltipY"); let position = 0.5; if (tooltipY instanceof Percent) { position = tooltipY.value; } return this.getPoint(position); } } FlowLink.className = "FlowLink"; FlowLink.classNames = Graphics.classNames.concat([FlowLink.className]); //# sourceMappingURL=FlowLink.js.map