import{dV as f,dW as S,dX as _,d4 as m,dY as w,dZ as D,d_ as C,d7 as I,d$ as g,e0 as b,e1 as x,cZ as L,e2 as A}from"./index.0308b213.js";var P=function(n){f(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,r){return S(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,r,a){return a.point(r.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(_);const z=P;var y=4,M=function(){function n(){}return n}(),T=function(n){f(e,n);function e(t){var r=n.call(this,t)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new M},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,r){var a=r.points,o=r.size,i=this.symbolProxy,p=i.shape,h=t.getContext?t.getContext():t,s=h&&o[0]=0;s--){var l=s*2,u=o[l]-p/2,c=o[l+1]-h/2;if(t>=u&&r>=c&&t<=u+p&&r<=c+h)return s}return-1},e.prototype.contain=function(t,r){var a=this.transformCoordToLocal(t,r),o=this.getBoundingRect();if(t=a[0],r=a[1],o.contain(t,r)){var i=this.hoverDataIdx=this.findDataIndex(t,r);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var r=this.shape,a=r.points,o=r.size,i=o[0],p=o[1],h=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(s.dataIndex=u+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const V=R;var N=function(n){f(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,r,a){var o=t.getData(),i=this._updateSymbolDraw(o,t);i.updateData(o,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,r,a){var o=t.getData(),i=this._updateSymbolDraw(o,t);i.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(t,r,a){this._symbolDraw.incrementalUpdate(t,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=t.end===r.getData().count()},e.prototype.updateTransform=function(t,r,a){var o=t.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var i=g("").reset(t,r,a);i.progress&&i.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var r=t.coordinateSystem,a=r&&r.getArea&&r.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,r){var a=this._symbolDraw,o=r.pipelineContext,i=o.large;return(!a||i!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=i?new V:new b,this._isLargeDraw=i,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(x);const B=N;function O(n){L(A),n.registerSeriesModel(z),n.registerChartView(B),n.registerLayout(g("scatter"))}export{O as i};