UNPKG

@amcharts/amcharts5

Version:
25 lines 770 B
import { Scrollbar } from "./Scrollbar"; /** * A control that allows zooming chart's axes, or other uses requiring range * selection. */ export class Slider extends Scrollbar { _afterNew() { this._addOrientationClass(); super._afterNew(); this.endGrip.setPrivate("visible", false); this.thumb.setPrivate("visible", false); } /** * @ignore */ updateGrips() { super.updateGrips(); const startGrip = this.startGrip; this.endGrip.setAll({ x: startGrip.x(), y: startGrip.y() }); this.setRaw("end", this.get("start")); } } Slider.className = "Slider"; Slider.classNames = Scrollbar.classNames.concat([Slider.className]); //# sourceMappingURL=Slider.js.map