UNPKG

quoslibero

Version:

FusionCharts JavaScript charting framework

1 lines 1.04 kB
import LineDataset from'../../../../fc-charts/src/dataset/line';import{__firePlotEvent,configurer,_updateImage,_drag}from'../dragarea';import{pluckNumber}from'../../../../fc-core/src/lib';import{_restore,_getJSONData}from'../dragcolumn';import{addDep}from'../../../../fc-core/src/dependency-manager';import draglineAnimation from'./index.animation';addDep({name:'dragLineAnimation',type:'animationRule',extension:draglineAnimation});class DragLineDataset extends LineDataset{_firePlotEvent(){__firePlotEvent.apply(this,arguments)}updateImage(a){_updateImage.call(this,a)}drag(){_drag.apply(this,arguments)}configureAttributes(){configurer.apply(this,arguments)}_plotConfigure(a,b){let c,d,e=this.config,f=this.components.data;super._plotConfigure(a,b),c=f[a],d=c.config,d.allowDrag=pluckNumber(b.allowdrag,e.allowDrag),d.allowNegDrag=pluckNumber(b.allownegativedrag,e.allowNegDrag)}getType(){return'dataset'}getName(){return'dragLine'}restore(){_restore.call(this)}getJSONData(){return _getJSONData.call(this)}}export default DragLineDataset;