highcharts
Version:
JavaScript charting framework
11 lines • 17.8 kB
JavaScript
/**
* Highcharts JS v13.0.1 (2026-08-17)
* @module highcharts/modules/draggable-points
* @requires highcharts
*
* (c) 2009-2026 Highsoft AS
* Author: Torstein Hønsi
*
* A commercial license may be required depending on use,
* see www.highcharts.com/license
*/import*as e from"../highcharts.js";let t={};t.n=e=>{let r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{if(Array.isArray(r))for(var a=0;a<r.length;){var o=r[a++],i=r[a++];t.o(e,o)?0===i&&a++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:r[a++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let r=e.default;var a=t.n(r);let o={addEvents:function(e,t,a,o){let i=t.map(t=>(0,r.addEvent)(e,t,a,o));return function(){for(let e of i)e()}},countProps:function(e){return Object.keys(e).length},getFirstProp:function(e){for(let t in e)if(Object.hasOwnProperty.call(e,t))return e[t]},getNormalizedEvent:function(e,t){return(void 0===e.chartX||void 0===e.chartY)&&t.pointer?.normalize(e)||e}},i={className:"highcharts-drag-handle",color:"#fff",lineColor:"rgba(0, 0, 0, 0.6)",lineWidth:1,zIndex:901},s={default:{className:"highcharts-drag-box-default",lineWidth:1,lineColor:"#888",color:"rgba(0, 0, 0, 0.1)",cursor:"move",zIndex:900}},{addEvents:n,countProps:d,getFirstProp:l,getNormalizedEvent:p}=o,{doc:g}=a();function h(){let e=this.dragHandles||{};if(e){for(let t of Object.keys(e))e[t].destroy&&e[t].destroy();delete this.dragHandles}}function u(e,t){let a=this.dragGuideBox,o=(0,r.merge)(s,t),i=(0,r.merge)(o.default,o[e]);return a.attr({class:i.className,stroke:i.lineColor,strokeWidth:i.lineWidth,fill:i.color,cursor:i.cursor,zIndex:i.zIndex}).css({pointerEvents:"none"})}function m(e){let t=this.options.chart||{},r=t.panKey&&t.panKey+"Key";return e[this.zooming.key&&this.zooming.key+"Key"]||e[r]}function c(e){return({left:"right",right:"left",top:"bottom",bottom:"top"})[e]}function x(e,t){let a,o=function(e){let t=e.series,a=t.options.data||[],o=t.options.dragDrop.groupBy,i=[];if(t.boosted&&(0,r.isArray)(a))for(let e=0,r=a.length;e<r;++e)i.push(new t.pointClass(t,a[e])),i[i.length-1].index=e;else i=t.points;return e.options[o]?i.filter(t=>t.options[o]===e.options[o]):[e]}(t),i=t.series,s=i.chart;(i.options.dragDrop?.liveRedraw??!0)||(s.dragGuideBox=a=i.getGuideBox(o),s.setGuideBoxState("default",i.options.dragDrop?.guideBox).add(i.group)),s.dragDropData={origin:function(e,t,r){let a={chartX:e.chartX,chartY:e.chartY,guideBox:r&&{x:r.attr("x"),y:r.attr("y"),width:r.attr("width"),height:r.attr("height")},points:{}};for(let r of t){let t=r.series.dragDropProps||{},o={};for(let a of Object.keys(t)){let i=t[a],s=r.series[i.axis+"Axis"];o[a]=r[a],r.series.chart.mapView&&r.plotX&&r.plotY?o[a+"Offset"]="x"===a?r.plotX:r.plotY:o[a+"Offset"]=s.toPixels(r[a])-(s.horiz?e.chartX:e.chartY)}o.point=r,a.points[r.id]=o}return a}(e,o,a),point:t,groupedPoints:o,isDragging:!0}}function y(e,t){let r=t.dragDropData;if(r&&r.isDragging&&r.draggedPastSensitivity&&r.point.series){let a=r.point,o=r.newPoints,i=d(o),s=1===i?l(o):null;t.dragHandles&&t.hideDragHandles(),e.preventDefault(),t.cancelClick=!0,a.firePointEvent("drop",{origin:r.origin,chartX:e.chartX,chartY:e.chartY,newPoints:o,numNewPoints:i,newPoint:s&&s.newValues,newPointId:s&&s.point.id},function(){D(t)})}delete t.dragDropData,t.dragGuideBox&&(t.dragGuideBox.destroy(),delete t.dragGuideBox)}function f(){var e;let t;!this.hasAddedDragDropEvents&&(e=this,t=e.container,function(e){let t=e.series?e.series.length:0;if(e.hasCartesianSeries&&!e.polar||e.mapView){for(;t--;)if(e.series[t].options.dragDrop&&function(e){let t,r=["draggableX","draggableY"],a=e.dragDropProps||{};for(let e of Object.keys(a))(t=a[e]).optionName&&r.push(t.optionName);let o=r.length;for(;o--;)if(e.options.dragDrop[r[o]])return!0}(e.series[t]))return!0}return!1}(e)&&(n(t,["mousedown","touchstart"],t=>{!function(e,t){let a=t.hoverPoint,o=(0,r.merge)(a&&a.series.options.dragDrop,a&&a.options.dragDrop),i=o.draggableX||!1,s=o.draggableY||!1;if(t.cancelClick=!1,!(!(i||s)||t.zoomOrPanKeyPressed(e))&&!t.hasDraggedAnnotation){if(t.dragDropData&&t.dragDropData.isDragging)return y(e,t);a&&function(e){let t,r,a,o=e.series,i=o.chart,s=o.options.dragDrop||{},n=e.options&&e.options.dragDrop,d=o.dragDropProps;for(let e in d)"x"===(t=d[e]).axis&&t.move?r=!0:"y"===t.axis&&t.move&&(a=!0);return(s.draggableX&&r||s.draggableY&&a)&&!(n&&!1===n.draggableX&&!1===n.draggableY)&&(!!(o.yAxis&&o.xAxis)||i.mapView)}(a)&&(t.mouseIsDown=!1,x(e,a),a.firePointEvent("dragStart",e))}}(p(t,e),e)}),n(t,["mousemove","touchmove"],t=>{!function(e,t){if(t.zoomOrPanKeyPressed(e))return;let a=t.dragDropData,o,i,s,n=0,p;if(a&&a.isDragging&&a.point.series){var g;let h,u,m,x,y;i=(o=a.point).series.options.dragDrop,e.preventDefault(),a.draggedPastSensitivity||(g=o.options.dragDrop?.dragSensitivity??i?.dragSensitivity??2??2,u=(h=t.dragDropData.origin).chartX,m=h.chartY,x=e.chartX,a.draggedPastSensitivity=Math.sqrt((x-u)*(x-u)+((y=e.chartY)-m)*(y-m))>g),a.draggedPastSensitivity&&(a.newPoints=function(e,t){let a=e.point,o=a.series,i=o.chart,s=(0,r.merge)(o.options.dragDrop,a.options.dragDrop),n={},d=e.updateProp,l={},p=a.series.dragDropProps;for(let e in p){let t=p[e];(!d||d===e&&t.resize&&(!t.optionName||!1!==s[t.optionName]))&&(d||t.move&&("x"===t.axis&&s.draggableX||"y"===t.axis&&s.draggableY))&&(i.mapView?n["x"===e?"lon":"lat"]=t:n[e]=t)}for(let r of d?[a]:e.groupedPoints)l[r.id]={point:r,newValues:r.getDropValues(e.origin,t,n)};return l}(a,e),p=1===(n=d(s=a.newPoints))?l(s):null,o.firePointEvent("drag",{origin:a.origin,newPoints:a.newPoints,newPoint:p&&p.newValues,newPointId:p&&p.point.id,numNewPoints:n,chartX:e.chartX,chartY:e.chartY},function(){var t,a,i;let s,n,d,l,p,g,h,u,m,x,y,f,v,P,b,w,z;d=(n=(s=o.series).chart).dragDropData,p=(l=(0,r.merge)(s.options.dragDrop,o.options.dragDrop)).draggableX,g=l.draggableY,h=d.origin,u=d.updateProp,m=e.chartX-h.chartX,x=e.chartY-h.chartY,y=m,n.inverted&&(m=-x,x=-y),l.liveRedraw??!0?(D(n,!1),o.showDragHandles()):u?(t=o,a=m,i=x,P=(v=(f=t.series).chart).dragDropData,b=f.dragDropProps[P.updateProp],w=P.newPoints[t.id].newValues,z="function"==typeof b.resizeSide?b.resizeSide(w,t):b.resizeSide,b.beforeResize&&b.beforeResize(v.dragGuideBox,w,t),function(e,t,r){let a;switch(t){case"left":a={x:e.attr("x")+r.x,width:Math.max(1,e.attr("width")-r.x)};break;case"right":a={width:Math.max(1,e.attr("width")+r.x)};break;case"top":a={y:e.attr("y")+r.y,height:Math.max(1,e.attr("height")-r.y)};break;case"bottom":a={height:Math.max(1,e.attr("height")+r.y)}}e.attr(a)}(v.dragGuideBox,"x"===b.axis&&f.xAxis.reversed||"y"===b.axis&&f.yAxis.reversed?c(z):z,{x:"x"===b.axis?a-(P.origin.prevdX||0):0,y:"y"===b.axis?i-(P.origin.prevdY||0):0})):n.dragGuideBox.translate(p?m:0,g?x:0),h.prevdX=m,h.prevdY=x}))}}(p(t,e),e)},{passive:!1}),(0,r.addEvent)(t,"mouseleave",t=>{y(p(t,e),e)}),e.unbindDragDropMouseUp=n(g,["mouseup","touchend"],t=>{y(p(t,e),e)},{passive:!1}),e.hasAddedDragDropEvents=!0,(0,r.addEvent)(e,"destroy",()=>{e.unbindDragDropMouseUp&&e.unbindDragDropMouseUp()})))}function D(e,t){let a,o=e.dragDropData.newPoints,i=(0,r.animObject)(t);for(let t of(e.isDragDropAnimating=!0,Object.keys(o)))(a=o[t]).point.update(a.newValues,!1);e.redraw(i),setTimeout(()=>{delete e.isDragDropAnimating,e.hoverPoint&&!e.dragHandles&&e.hoverPoint.showDragHandles()},i.duration)}let v={compose:function(e){let t=e.prototype;t.hideDragHandles||(t.hideDragHandles=h,t.setGuideBoxState=u,t.zoomOrPanKeyPressed=m,(0,r.addEvent)(e,"render",f))},flipResizeSide:c,initDragDrop:x},{flipResizeSide:P}=v,b={x:{axis:"x",move:!0},y:{axis:"y",move:!0}},w={x:{axis:"x",move:!0},y:{axis:"y",move:!1,resize:!0,beforeResize:(e,t,a)=>{let o,i=(0,r.pick)(a.yBottom,a.series.translatedThreshold),s=e.attr("y"),n=(0,r.isNumber)(a.stackY)?a.stackY-(a.y||0):a.series.options.threshold||0,d=n+t.y;(a.series.yAxis.reversed?d<n:d>=n)?(o=e.attr("height"),e.attr({height:Math.max(0,Math.round(o+(i?i-s-o:0)))})):e.attr({y:Math.round(s+(i?i-s:0))})},resizeSide:(e,t)=>{let r=t.series.chart.dragHandles,a=e.y>=(t.series.options.threshold||0)?"top":"bottom",o=P(a);return r&&r[o]&&(r[o].destroy(),delete r[o]),a},handlePositioner:e=>{let t=e.shapeArgs||e.graphic&&e.graphic.getBBox()||{},r=e.series.yAxis.reversed,a=e.series.options.threshold||0,o=e.y||0;return{x:t.x||0,y:!r&&o>=a||r&&o<a?t.y||0:(t.y||0)+(t.height||0)}},handleFormatter:e=>{let t=e.shapeArgs||{},r=t.r||0,a=t.width||0,o=a/2;return[["M",r,0],["L",o-5,0],["A",1,1,0,0,0,o+5,0],["A",1,1,0,0,0,o-5,0],["M",o+5,0],["L",a-r,0]]}}},z={x:w.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:e=>({x:e.shapeArgs.x||0,y:e.lowPlot}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.q1},q1:{optionName:"draggableQ1",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:e=>({x:e.shapeArgs.x||0,y:e.q1Plot}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.median&&e>=t.low},median:{axis:"y",move:!0},q3:{optionName:"draggableQ3",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:e=>({x:e.shapeArgs.x||0,y:e.q3Plot}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.high&&e>=t.median},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:e=>({x:e.shapeArgs.x||0,y:e.highPlot}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e>=t.q3}},A={x:w.x,low:{...z.low,propValidate:(e,t)=>e<=t.high},high:{...z.high,propValidate:(e,t)=>e>=t.low}},N={x:w.x,y:w.y,target:{optionName:"draggableTarget",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:e=>{let t=e.targetGraphic.getBBox();return{x:e.barX,y:t.y+t.height/2}},handleFormatter:w.y.handleFormatter}},S={x:w.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:e=>({x:e.shapeArgs.x,y:e.plotLow}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.open&&e<=t.close},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:e=>({x:e.shapeArgs.x,y:e.plotHigh}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e>=t.open&&e>=t.close},open:{optionName:"draggableOpen",axis:"y",move:!0,resize:!0,resizeSide:e=>e.open>=e.close?"top":"bottom",handlePositioner:e=>({x:e.shapeArgs.x,y:e.plotOpen}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.high&&e>=t.low},close:{optionName:"draggableClose",axis:"y",move:!0,resize:!0,resizeSide:e=>e.open>=e.close?"bottom":"top",handlePositioner:e=>({x:e.shapeArgs.x,y:e.plotClose}),handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.high&&e>=t.low}},B={x:w.x,y:(0,r.merge)(w.y,{handleFormatter:e=>e.isSum||e.isIntermediateSum?null:w?.y?.handleFormatter?.(e)||null})},H={x:{axis:"x",move:!0},low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:e=>{let t=e.shapeArgs||e.graphic.getBBox();return{x:t.x||0,y:(t.y||0)+(t.height||0)}},handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e<=t.high},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:e=>{let t=e.shapeArgs||e.graphic.getBBox();return{x:t.x||0,y:t.y||0}},handleFormatter:w.y.handleFormatter,propValidate:(e,t)=>e>=t.low}},F={x:H.x,low:{optionName:"draggableLow",axis:"y",move:!0,resize:!0,resizeSide:"bottom",handlePositioner:e=>{let t=e.graphics&&e.graphics[0]&&e.graphics[0].getBBox();return t?{x:t.x+t.width/2,y:t.y+t.height/2}:{x:-999,y:-999}},handleFormatter:M,propValidate:H.low.propValidate},high:{optionName:"draggableHigh",axis:"y",move:!0,resize:!0,resizeSide:"top",handlePositioner:e=>{let t=e.graphics&&e.graphics[1]&&e.graphics[1].getBBox();return t?{x:t.x+t.width/2,y:t.y+t.height/2}:{x:-999,y:-999}},handleFormatter:M,propValidate:H.high.propValidate}},V={y:{axis:"y",move:!0},x:{optionName:"draggableX1",axis:"x",move:!0,resize:!0,resizeSide:"left",handlePositioner:e=>O(e,"x"),handleFormatter:X,propValidate:(e,t)=>e<=t.x2},x2:{optionName:"draggableX2",axis:"x",move:!0,resize:!0,resizeSide:"right",handlePositioner:e=>O(e,"x2"),handleFormatter:X,propValidate:(e,t)=>e>=t.x}};function M(e){let t=e.graphic?e.graphic.getBBox().width/2+1:4;return[["M",0-t,0],["a",t,t,0,1,0,2*t,0],["a",t,t,0,1,0,-2*t,0]]}function X(e){let t=e.shapeArgs||e.graphic.getBBox(),r=t.r||0,a=t.height-r,o=t.height/2;return[["M",0,r],["L",0,o-5],["A",1,1,0,0,0,0,o+5],["A",1,1,0,0,0,0,o-5],["M",0,o+5],["L",0,a]]}function O(e,t){let r=e.series,a=r.xAxis,o=r.yAxis,i=r.chart.inverted,s=r.columnMetrics?r.columnMetrics.offset:-e.shapeArgs.height/2,n=a.toPixels(e[t],!0),d=o.toPixels(e.y,!0);return i&&(n=a.len-n,d=o.len-d),{x:Math.round(n),y:Math.round(d+=s)}}let Y={arearange:F,boxplot:z,bullet:N,column:w,columnrange:H,errorbar:A,flags:b,gantt:{y:V.y,start:(0,r.merge)(V.x,{optionName:"draggableStart",validateIndividualDrag:e=>!e.milestone}),end:(0,r.merge)(V.x2,{optionName:"draggableEnd",validateIndividualDrag:e=>!e.milestone})},line:b,ohlc:S,waterfall:B,xrange:V},{addEvents:k,getNormalizedEvent:E}=o,{initDragDrop:j}=v;function L(e){let t=e.series&&e.series.chart,r=t&&t.dragDropData;t&&t.dragHandles&&!(r&&(r.isDragging&&r.draggedPastSensitivity||r.isHoveringHandle===e.id))&&t.hideDragHandles()}function C(){let e=this;setTimeout(()=>{e.series&&L(e)},10)}function G(){let e=this;setTimeout(()=>{let t,r,a,o;return a=(r=(t=e.series)&&t.chart)&&r.dragDropData,o=r&&r.is3d&&r.is3d(),void(r&&!(a&&a.isDragging&&a.draggedPastSensitivity)&&!r.isDragDropAnimating&&t.options.dragDrop&&!o&&(r.dragHandles&&r.hideDragHandles(),e.showDragHandles()))},12)}function I(){let e=this.series.chart,t=e.dragHandles;t&&t.point===this.id&&e.hideDragHandles()}function T(e,t,a){let o=this.series,i=o.chart,s=i.mapView,n=(0,r.merge)(o.options.dragDrop,this.options.dragDrop),d={},l=e.points[this.id],p=1===Object.keys(a).length,g=(e,t)=>{let a=t.toUpperCase(),i=o.chart.time,s=+!!o[`${t}Axis`].categories,d=n[`dragPrecision${a}`]??s,l=i.parse(n[`dragMin${a}`])??-1/0,p=i.parse(n[`dragMax${a}`])??1/0,g=e;return d&&(g=Math.round(g/d)*d),(0,r.clamp)(g,l,p)},h=(e,t,a)=>{if(s){let o=t.toUpperCase(),d=n[`dragPrecision${o}`]??0,l=s.pixelsToLonLat({x:0,y:0}),p=s.pixelsToLonLat({x:i.plotBox.width,y:i.plotBox.height}),g=n[`dragMin${o}`]??l?.[a]??-1/0,h=n[`dragMax${o}`]??p?.[a]??1/0,u=e[a];if("Orthographic"===s.projection.options.name)return u;if("lat"===a){(isNaN(g)||g>s.projection.maxLatitude)&&(g=s.projection.maxLatitude),(isNaN(h)||h<-1*s.projection.maxLatitude)&&(h=-1*s.projection.maxLatitude);let e=h;h=g,g=e}if(!s.projection.hasCoordinates){let t=s.pixelsToLonLat({x:e.chartX-i.plotLeft,y:i.plotHeight-e.chartY+i.plotTop});t&&(u=t[a])}return d&&(u=Math.round(u/d)*d),(0,r.clamp)(u,g,h)}};for(let e of Object.keys(a)){let i=a[e],n=l.point[e],u=o[i.axis+"Axis"],m=s?h(t,i.axis,e):g(u.toValue((u.horiz?t.chartX:t.chartY)+l[e+"Offset"]),i.axis);(0,r.isNumber)(m)&&!(p&&i.propValidate&&!i.propValidate(m,this))&&void 0!==n&&(d[e]=m)}return d}function K(){let e=this,t=e.series,a=t.chart,{inverted:o,renderer:s}=a,n=(0,r.merge)(t.options.dragDrop,e.options.dragDrop),d=t.dragDropProps||{},l=a.dragHandles;for(let p of Object.keys(d)){let g,h,u,m=d[p],c=(0,r.merge)(i,m.handleOptions,n.dragHandle),x={class:c.className,"stroke-width":c.lineWidth,fill:c.color,stroke:c.lineColor},y=c.pathFormatter||m.handleFormatter,f=m.handlePositioner,D=!m.validateIndividualDrag||m.validateIndividualDrag(e);if(m.resize&&D&&m.resizeSide&&y&&(n["draggable"+m.axis.toUpperCase()]||n[m.optionName])&&!1!==n[m.optionName]){l?l.point=e.id:l=a.dragHandles={group:s.g("drag-drop-handles").add(t.markerGroup||t.group),point:e.id},g=f(e),x.d=u=y(e);let i=e.series.xAxis.categories?-.5:0;if(!u||g.x<i||g.y<0)continue;x.cursor=c.cursor||("x"===m.axis!=!!o?"ew-resize":"ns-resize"),(h=l[m.optionName])||(h=l[m.optionName]=s.path().add(l.group)),x.translateX=o?t.yAxis.len-g.y:g.x,x.translateY=o?t.xAxis.len-g.x:g.y,o&&(x.rotation=-90),h.attr(x),k(h.element,["touchstart","mousedown"],t=>{!function(e,t,r){let a=t.series.chart;a.zoomOrPanKeyPressed(e)||(a.mouseIsDown=!1,j(e,t),a.dragDropData.updateProp=e.updateProp=r,t.firePointEvent("dragStart",e),e.stopPropagation(),e.preventDefault())}(E(t,a),e,p)},{passive:!1}),(0,r.addEvent)(l.group.element,"mouseover",()=>{a.dragDropData=a.dragDropData||{},a.dragDropData.isHoveringHandle=e.id}),k(l.group.element,["touchend","mouseout"],()=>{!function(e){let t=e.series.chart;t.dragDropData&&e.id===t.dragDropData.isHoveringHandle&&delete t.dragDropData.isHoveringHandle,t.hoverPoint||L(e)}(e)})}}}function q(e){let t=this.chart,a=1/0,o=-1/0,i=1/0,s=-1/0,n;for(let t of e){let e=t.graphic&&t.graphic.getBBox()||t.shapeArgs;if(e){let d,l=t.x2;(0,r.isNumber)(l)&&(d=t.series.xAxis.translate(l,!1,!1,!1,!0));let p=!(e.width||e.height||e.x||e.y);n=!0,a=Math.min(t.plotX||0,d||0,p?1/0:e.x||0,a),o=Math.max(t.plotX||0,d||0,(e.x||0)+(e.width||0),o),i=Math.min(t.plotY||0,p?1/0:e.y||0,i),s=Math.max((e.y||0)+(e.height||0),s)}}return n?t.renderer.rect(a,i,o-a,s-i):t.renderer.g()}let $=a();({compose:function(e,t){v.compose(e);let a=t.prototype;if(!a.dragDropProps){let e=t.prototype.pointClass,o=t.types,i=e.prototype;for(let t of(i.getDropValues=T,i.showDragHandles=K,(0,r.addEvent)(e,"mouseOut",C),(0,r.addEvent)(e,"mouseOver",G),(0,r.addEvent)(e,"remove",I),a.dragDropProps=Y.line,a.getGuideBox=q,["arearange","boxplot","bullet","column","columnrange","errorbar","flags","gantt","ohlc","waterfall","xrange"]))o[t]&&(o[t].prototype.dragDropProps=Y[t]);for(let e of["bellcurve","gauge","histogram","map","mapline","pareto","pie","sankey","sma","sunburst","treemap","vector","windbarb","wordcloud"])o[e]&&(o[e].prototype.dragDropProps=null)}}}).compose($.Chart,$.Series);let R=a();export{R as default};