@canvasjs/stockcharts 1.7.28 → 1.7.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- CanvasJS StockChart - v1.7.28 GA - https://canvasjs.com/
1
+ CanvasJS StockChart - v1.7.29 GA - https://canvasjs.com/
2
2
  Copyright 2023 fenopix
3
3
 
4
4
  --------------------- License Information --------------------
@@ -1,5 +1,5 @@
1
1
  /*
2
- CanvasJS StockChart - v1.7.28 GA - https://canvasjs.com/
2
+ CanvasJS StockChart - v1.7.29 GA - https://canvasjs.com/
3
3
  Copyright 2023 fenopix
4
4
 
5
5
  --------------------- License Information --------------------
@@ -559,19 +559,19 @@ k=p.legendText?p.legendText:this.itemTextFormatter?this.itemTextFormatter({chart
559
559
  p.legendMarkerBorderThickness:p.markerBorderThickness?Math.max(1,Math.round(0.2*x)):0;"error"===p.type&&this.errorMarkerColor.push(r);k=this.chart.replaceKeywordsWithValue(k,p.dataPoints[0],p,n);q={markerType:q,markerColor:r,text:k,textBlock:null,chartType:p.type,markerSize:x,lineColor:p._colorSet[0],dataSeriesIndex:p.index,dataPointIndex:null,markerBorderColor:s,markerBorderThickness:w};v.push(q)}else for(var u=0;u<p.dataPoints.length;u++){var t=p.dataPoints[u],q=t.legendMarkerType?t.legendMarkerType:
560
560
  p.legendMarkerType?p.legendMarkerType:O.getDefaultLegendMarker(p.type),k=t.legendText?t.legendText:p.legendText?p.legendText:this.itemTextFormatter?this.itemTextFormatter({chart:this.chart,legend:this.options,dataSeries:p,dataPoint:t}):t.name?t.name:"DataPoint: "+(u+1),r=t.legendMarkerColor?t.legendMarkerColor:p.legendMarkerColor?p.legendMarkerColor:t.color?t.color:p.color?p.color:p._colorSet[u%p._colorSet.length],x=0.75*this.lineHeight,s=t.legendMarkerBorderColor?t.legendMarkerBorderColor:p.legendMarkerBorderColor?
561
561
  p.legendMarkerBorderColor:t.markerBorderColor?t.markerBorderColor:p.markerBorderColor,w=t.legendMarkerBorderThickness?t.legendMarkerBorderThickness:p.legendMarkerBorderThickness?p.legendMarkerBorderThickness:t.markerBorderThickness||p.markerBorderThickness?Math.max(1,Math.round(0.2*x)):0,k=this.chart.replaceKeywordsWithValue(k,t,p,u),q={markerType:q,markerColor:r,text:k,textBlock:null,chartType:p.type,markerSize:x,dataSeriesIndex:n,dataPointIndex:u,markerBorderColor:s,markerBorderThickness:w};(t.showInLegend||
562
- p.showInLegend&&!1!==t.showInLegend)&&v.push(q)}}!0===this.reversed&&v.reverse();if(0<v.length){p=null;r=k=t=u=0;t=null!==this.itemWidth?null!==this.itemMaxWidth?Math.min(this.itemWidth,this.itemMaxWidth,h):this.itemMaxWidth=Math.min(this.itemWidth,h):null!==this.itemMaxWidth?Math.min(this.itemMaxWidth,h):this.itemMaxWidth=h;x=0===x?0.75*this.lineHeight:x;t-=x+l;for(n=0;n<v.length;n++){q=v[n];s=t;if("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType)s-=2*0.1*this.lineHeight;if(!(0>=
563
- d||"undefined"===typeof d||0>=s||"undefined"===typeof s)){if("horizontal"===this.orientation){q.textBlock=new na(this.ctx,{x:0,y:0,maxWidth:s,maxHeight:this.itemWrap?d:this.lineHeight,angle:0,text:q.text,horizontalAlign:"left",fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:"middle"});q.textBlock.measureText();null!==this.itemWidth&&(q.textBlock.width=this.itemWidth-(x+l+("line"===q.chartType||"spline"===q.chartType||
564
- "stepLine"===q.chartType?2*0.1*this.lineHeight:0)));if(!p||p.width+Math.round(q.textBlock.width+x+l+(0===p.width?0:this.horizontalSpacing)+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0))>h)p={items:[],width:0},m.push(p),this.height+=k,k=0;k=Math.max(k,q.textBlock.height?q.textBlock.height:this.lineHeight)}else q.textBlock=new na(this.ctx,{x:0,y:0,maxWidth:t,maxHeight:!0===this.itemWrap?d:1.5*this.fontSize,angle:0,text:q.text,horizontalAlign:"left",
565
- fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:"middle"}),q.textBlock.measureText(),null!==this.itemWidth&&(q.textBlock.width=this.itemWidth-(x+l+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0))),this.height<d-this.lineHeight?(p={items:[],width:0},m.push(p)):(p=m[u],u=(u+1)%m.length),this.height+=q.textBlock.height?q.textBlock.height:this.lineHeight;q.textBlock.x=
566
- p.width;q.textBlock.y=0;p.width+=Math.round(q.textBlock.width+x+l+(0===p.width?0:this.horizontalSpacing)+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0));p.items.push(q);this.width=Math.max(p.width,this.width);r=q.textBlock.width+(x+l+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0))}}this.itemWidth=r;this.height=!1===this.itemWrap?m.length*this.lineHeight:this.height+k;this.height=Math.min(d,this.height);
567
- this.width=Math.min(h,this.width)}"top"===this.verticalAlign?(g="left"===this.horizontalAlign?f.x1:"right"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,b=f.y1):"center"===this.verticalAlign?(g="left"===this.horizontalAlign?f.x1:"right"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,b=f.y1+f.height/2-this.height/2):"bottom"===this.verticalAlign&&(g="left"===this.horizontalAlign?f.x1:"right"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,
568
- b=f.y2-this.height);this.items=v;for(n=0;n<this.items.length;n++)q=v[n],q.id=++this.chart._eventManager.lastObjectId,this.chart._eventManager.objectMap[q.id]={id:q.id,objectType:"legendItem",legendItemIndex:n,dataSeriesIndex:q.dataSeriesIndex,dataPointIndex:q.dataPointIndex};this.markerSize=x;this.rows=m;0<v.length&&a.layoutManager.registerSpace(c,{width:this.width+2+2,height:this.height+5+5});this.bounds={x1:g,y1:b,x2:g+this.width,y2:b+this.height}};J.prototype.render=function(){var a=this.bounds.x1,
569
- f=this.bounds.y1,c=this.markerMargin,b=this.maxWidth,g=this.maxHeight,h=this.markerSize,d=this.rows;(0<this.borderThickness&&this.borderColor||this.backgroundColor)&&this.ctx.roundRect(a,f,this.width,this.height,this.cornerRadius,this.borderThickness,this.backgroundColor,this.borderColor);for(var e=0,l=0;l<d.length;l++){for(var m=d[l],n=0,p=0;p<m.items.length;p++){var q=m.items[p],k=q.textBlock.x+a+(0===p?0.2*h:this.horizontalSpacing),r=f+e,v=k;this.chart.data[q.dataSeriesIndex].visible||(this.ctx.globalAlpha=
570
- 0.5);this.ctx.save();this.ctx.beginPath();this.ctx.rect(a,f,b,Math.max(g-g%this.lineHeight,0));this.ctx.clip();if("line"===q.chartType||"stepLine"===q.chartType||"spline"===q.chartType)this.ctx.strokeStyle=q.lineColor,this.ctx.lineWidth=Math.ceil(this.lineHeight/8),this.ctx.beginPath(),this.ctx.moveTo(k-0.1*this.lineHeight,r+this.lineHeight/2),this.ctx.lineTo(k+0.85*this.lineHeight,r+this.lineHeight/2),this.ctx.stroke(),v-=0.1*this.lineHeight;if("error"===q.chartType){this.ctx.strokeStyle=this.errorMarkerColor[0];
571
- this.ctx.lineWidth=h/8;this.ctx.beginPath();var x=k-0.08*this.lineHeight+0.1*this.lineHeight,w=r+0.15*this.lineHeight,u=0.7*this.lineHeight,t=u+0.02*this.lineHeight;this.ctx.moveTo(x,w);this.ctx.lineTo(x+u,w);this.ctx.stroke();this.ctx.beginPath();this.ctx.moveTo(x+u/2,w);this.ctx.lineTo(x+u/2,w+t);this.ctx.stroke();this.ctx.beginPath();this.ctx.moveTo(x,w+t);this.ctx.lineTo(x+u,w+t);this.ctx.stroke();this.errorMarkerColor.shift()}s.drawMarker(k+h/2,r+this.lineHeight/2,this.ctx,q.markerType,"error"===
572
- q.chartType||"line"===q.chartType||"spline"===q.chartType?q.markerSize/2:q.markerSize,q.markerColor,q.markerBorderColor,q.markerBorderThickness);q.textBlock.x=k+c+h;if("line"===q.chartType||"stepLine"===q.chartType||"spline"===q.chartType)q.textBlock.x+=0.1*this.lineHeight;q.textBlock.y=Math.round(r+this.lineHeight/2);q.textBlock.render(!0);this.ctx.restore();n=0<p?Math.max(n,q.textBlock.height?q.textBlock.height:this.lineHeight):q.textBlock.height?q.textBlock.height:this.lineHeight;this.chart.data[q.dataSeriesIndex].visible||
573
- (this.ctx.globalAlpha=1);k=W(q.id);this.ghostCtx.fillStyle=k;this.ghostCtx.beginPath();this.ghostCtx.fillRect(v,q.textBlock.y-this.lineHeight/2,q.textBlock.x+q.textBlock.width-v,q.textBlock.height?q.textBlock.height:this.lineHeight);q.x1=this.chart._eventManager.objectMap[q.id].x1=v;q.y1=this.chart._eventManager.objectMap[q.id].y1=q.textBlock.y-this.lineHeight/2;q.x2=this.chart._eventManager.objectMap[q.id].x2=q.textBlock.x+q.textBlock.width;q.y2=this.chart._eventManager.objectMap[q.id].y2=q.textBlock.y+
574
- (q.textBlock.height?q.textBlock.height:this.lineHeight)-this.lineHeight/2}e+=n}};ia(O,aa);O.prototype.getDefaultAxisPlacement=function(){var a=this.type;if("column"===a||"line"===a||"stepLine"===a||"spline"===a||"area"===a||"stepArea"===a||"splineArea"===a||"stackedColumn"===a||"stackedLine"===a||"bubble"===a||"scatter"===a||"stackedArea"===a||"stackedColumn100"===a||"stackedLine100"===a||"stackedArea100"===a||"candlestick"===a||"ohlc"===a||"rangeColumn"===a||"rangeArea"===a||"rangeSplineArea"===
562
+ p.showInLegend&&!1!==t.showInLegend)&&v.push(q)}}!0===this.reversed&&v.reverse();if(0<v.length){p=null;r=k=t=u=0;t=null!==this.itemWidth?null!==this.itemMaxWidth?Math.min(this.itemWidth,this.itemMaxWidth,h):this.itemMaxWidth=Math.min(this.itemWidth,h):null!==this.itemMaxWidth?Math.min(this.itemMaxWidth,h):this.itemMaxWidth=h;x=0===x?0.75*this.lineHeight:x;t=(this.itemMaxWidth?this.itemMaxWidth:t)-(x+l);for(n=0;n<v.length;n++){q=v[n];s=t;if("line"===q.chartType||"spline"===q.chartType||"stepLine"===
563
+ q.chartType)s-=2*0.1*this.lineHeight;if(!(0>=d||"undefined"===typeof d||0>=s||"undefined"===typeof s)){if("horizontal"===this.orientation){q.textBlock=new na(this.ctx,{x:0,y:0,maxWidth:s,maxHeight:this.itemWrap?d:this.lineHeight,angle:0,text:q.text,horizontalAlign:"left",fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:"middle"});q.textBlock.measureText();null!==this.itemWidth&&(q.textBlock.width=this.itemWidth-
564
+ (x+l+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0)));if(!p||p.width+Math.round(q.textBlock.width+x+l+(0===p.width?0:this.horizontalSpacing)+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0))>h)p={items:[],width:0},m.push(p),this.height+=k,k=0;k=Math.max(k,q.textBlock.height?q.textBlock.height:this.lineHeight)}else q.textBlock=new na(this.ctx,{x:0,y:0,maxWidth:t,maxHeight:!0===this.itemWrap?d:1.5*this.fontSize,
565
+ angle:0,text:q.text,horizontalAlign:"left",fontSize:this.fontSize,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontColor:this.fontColor,fontStyle:this.fontStyle,textBaseline:"middle"}),q.textBlock.measureText(),null!==this.itemWidth&&(q.textBlock.width=this.itemWidth-(x+l+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0))),this.height<d-this.lineHeight?(p={items:[],width:0},m.push(p)):(p=m[u],u=(u+1)%m.length),this.height+=q.textBlock.height?
566
+ q.textBlock.height:this.lineHeight;q.textBlock.x=p.width;q.textBlock.y=0;p.width+=Math.round(q.textBlock.width+x+l+(0===p.width?0:this.horizontalSpacing)+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0));p.items.push(q);this.width=Math.max(p.width,this.width);r=q.textBlock.width+(x+l+("line"===q.chartType||"spline"===q.chartType||"stepLine"===q.chartType?2*0.1*this.lineHeight:0))}}this.itemWidth=r;this.height=!1===this.itemWrap?m.length*this.lineHeight:
567
+ this.height+k;this.height=Math.min(d,this.height);this.width=Math.min(h,this.width)}"top"===this.verticalAlign?(g="left"===this.horizontalAlign?f.x1:"right"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,b=f.y1):"center"===this.verticalAlign?(g="left"===this.horizontalAlign?f.x1:"right"===this.horizontalAlign?f.x2-this.width:f.x1+f.width/2-this.width/2,b=f.y1+f.height/2-this.height/2):"bottom"===this.verticalAlign&&(g="left"===this.horizontalAlign?f.x1:"right"===this.horizontalAlign?
568
+ f.x2-this.width:f.x1+f.width/2-this.width/2,b=f.y2-this.height);this.items=v;for(n=0;n<this.items.length;n++)q=v[n],q.id=++this.chart._eventManager.lastObjectId,this.chart._eventManager.objectMap[q.id]={id:q.id,objectType:"legendItem",legendItemIndex:n,dataSeriesIndex:q.dataSeriesIndex,dataPointIndex:q.dataPointIndex};this.markerSize=x;this.rows=m;0<v.length&&a.layoutManager.registerSpace(c,{width:this.width+2+2,height:this.height+5+5});this.bounds={x1:g,y1:b,x2:g+this.width,y2:b+this.height}};J.prototype.render=
569
+ function(){var a=this.bounds.x1,f=this.bounds.y1,c=this.markerMargin,b=this.maxWidth,g=this.maxHeight,h=this.markerSize,d=this.rows;(0<this.borderThickness&&this.borderColor||this.backgroundColor)&&this.ctx.roundRect(a,f,this.width,this.height,this.cornerRadius,this.borderThickness,this.backgroundColor,this.borderColor);for(var e=0,l=0;l<d.length;l++){for(var m=d[l],n=0,p=0;p<m.items.length;p++){var q=m.items[p],k=q.textBlock.x+a+(0===p?0.2*h:this.horizontalSpacing),r=f+e,v=k;this.chart.data[q.dataSeriesIndex].visible||
570
+ (this.ctx.globalAlpha=0.5);this.ctx.save();this.ctx.beginPath();this.ctx.rect(a,f,b,Math.max(g-g%this.lineHeight,0));this.ctx.clip();if("line"===q.chartType||"stepLine"===q.chartType||"spline"===q.chartType)this.ctx.strokeStyle=q.lineColor,this.ctx.lineWidth=Math.ceil(this.lineHeight/8),this.ctx.beginPath(),this.ctx.moveTo(k-0.1*this.lineHeight,r+this.lineHeight/2),this.ctx.lineTo(k+0.85*this.lineHeight,r+this.lineHeight/2),this.ctx.stroke(),v-=0.1*this.lineHeight;if("error"===q.chartType){this.ctx.strokeStyle=
571
+ this.errorMarkerColor[0];this.ctx.lineWidth=h/8;this.ctx.beginPath();var x=k-0.08*this.lineHeight+0.1*this.lineHeight,w=r+0.15*this.lineHeight,u=0.7*this.lineHeight,t=u+0.02*this.lineHeight;this.ctx.moveTo(x,w);this.ctx.lineTo(x+u,w);this.ctx.stroke();this.ctx.beginPath();this.ctx.moveTo(x+u/2,w);this.ctx.lineTo(x+u/2,w+t);this.ctx.stroke();this.ctx.beginPath();this.ctx.moveTo(x,w+t);this.ctx.lineTo(x+u,w+t);this.ctx.stroke();this.errorMarkerColor.shift()}s.drawMarker(k+h/2,r+this.lineHeight/2,this.ctx,
572
+ q.markerType,"error"===q.chartType||"line"===q.chartType||"spline"===q.chartType?q.markerSize/2:q.markerSize,q.markerColor,q.markerBorderColor,q.markerBorderThickness);q.textBlock.x=k+c+h;if("line"===q.chartType||"stepLine"===q.chartType||"spline"===q.chartType)q.textBlock.x+=0.1*this.lineHeight;q.textBlock.y=Math.round(r+this.lineHeight/2);q.textBlock.render(!0);this.ctx.restore();n=0<p?Math.max(n,q.textBlock.height?q.textBlock.height:this.lineHeight):q.textBlock.height?q.textBlock.height:this.lineHeight;
573
+ this.chart.data[q.dataSeriesIndex].visible||(this.ctx.globalAlpha=1);k=W(q.id);this.ghostCtx.fillStyle=k;this.ghostCtx.beginPath();this.ghostCtx.fillRect(v,q.textBlock.y-this.lineHeight/2,q.textBlock.x+q.textBlock.width-v,q.textBlock.height?q.textBlock.height:this.lineHeight);q.x1=this.chart._eventManager.objectMap[q.id].x1=v;q.y1=this.chart._eventManager.objectMap[q.id].y1=q.textBlock.y-this.lineHeight/2;q.x2=this.chart._eventManager.objectMap[q.id].x2=q.textBlock.x+q.textBlock.width;q.y2=this.chart._eventManager.objectMap[q.id].y2=
574
+ q.textBlock.y+(q.textBlock.height?q.textBlock.height:this.lineHeight)-this.lineHeight/2}e+=n}};ia(O,aa);O.prototype.getDefaultAxisPlacement=function(){var a=this.type;if("column"===a||"line"===a||"stepLine"===a||"spline"===a||"area"===a||"stepArea"===a||"splineArea"===a||"stackedColumn"===a||"stackedLine"===a||"bubble"===a||"scatter"===a||"stackedArea"===a||"stackedColumn100"===a||"stackedLine100"===a||"stackedArea100"===a||"candlestick"===a||"ohlc"===a||"rangeColumn"===a||"rangeArea"===a||"rangeSplineArea"===
575
575
  a||"boxAndWhisker"===a||"waterfall"===a)return"normal";if("bar"===a||"stackedBar"===a||"stackedBar100"===a||"rangeBar"===a)return"xySwapped";if("pie"===a||"doughnut"===a||"funnel"===a||"pyramid"===a)return"none";"error"!==a&&window.console.log("Unknown Chart Type: "+a);return null};O.getDefaultLegendMarker=function(a){if("column"===a||"stackedColumn"===a||"stackedLine"===a||"bar"===a||"stackedBar"===a||"stackedBar100"===a||"bubble"===a||"scatter"===a||"stackedColumn100"===a||"stackedLine100"===a||
576
576
  "stepArea"===a||"candlestick"===a||"ohlc"===a||"rangeColumn"===a||"rangeBar"===a||"rangeArea"===a||"rangeSplineArea"===a||"boxAndWhisker"===a||"waterfall"===a)return"square";if("line"===a||"stepLine"===a||"spline"===a||"pie"===a||"doughnut"===a)return"circle";if("area"===a||"splineArea"===a||"stackedArea"===a||"stackedArea100"===a||"funnel"===a||"pyramid"===a)return"triangle";if("error"===a)return"none";window.console.log("Unknown Chart Type: "+a);return null};O.prototype.getDataPointAtX=function(a,
577
577
  f){if(!this.dataPoints||0===this.dataPoints.length)return null;var c={dataPoint:null,distance:Infinity,index:NaN},b=null,g=0,h=0,d=1,e=Infinity,l=0,m=0,n=0;"none"!==this.chart.plotInfo.axisPlacement&&(this.axisX.logarithmic?(n=Math.log(this.dataPoints[this.dataPoints.length-1].x/this.dataPoints[0].x),n=1<n?Math.min(Math.max((this.dataPoints.length-1)/n*Math.log(a/this.dataPoints[0].x)>>0,0),this.dataPoints.length):0):(n=this.dataPoints[this.dataPoints.length-1].x-this.dataPoints[0].x,n=0<n?Math.min(Math.max((this.dataPoints.length-
@@ -930,7 +930,7 @@ this.chart.requestAnimFrame.call(window,function(){h.animate.call(h)}):this.char
930
930
  d){if(0!==a){var c=d.dest,b=d.source.canvas,g=d.animationBase;c.drawImage(b,0,0,b.width,b.height,g-g*a,0,a*c.canvas.width/ka,c.canvas.height/ka)}},xClipAnimation:function(a,d){if(0!==a){var c=d.dest,b=d.source.canvas;c.save();0<a&&c.drawImage(b,0,0,b.width*a,b.height,0,0,b.width*a/ka,b.height/ka);c.restore()}},fadeInAnimation:function(a,d){if(0!==a){var c=d.dest,b=d.source.canvas;c.save();c.globalAlpha=a;c.drawImage(b,0,0,b.width,b.height,0,0,c.canvas.width/ka,c.canvas.height/ka);c.restore()}},easing:{linear:function(a,
931
931
  d,c,b){return c*a/b+d},easeOutQuad:function(a,d,c,b){return-c*(a/=b)*(a-2)+d},easeOutQuart:function(a,d,c,b){return-c*((a=a/b-1)*a*a*a-1)+d},easeInQuad:function(a,d,c,b){return c*(a/=b)*a+d},easeInQuart:function(a,d,c,b){return c*(a/=b)*a*a*a+d}}},s={drawMarker:function(a,d,c,b,g,h,e,l){if(c){var v=1;c.fillStyle=h?h:"#000000";c.strokeStyle=e?e:"#000000";c.lineWidth=l?l:0;c.setLineDash&&c.setLineDash(S("solid",l));"circle"===b?(c.moveTo(a,d),c.beginPath(),c.arc(a,d,g/2,0,2*Math.PI,!1),h&&c.fill(),
932
932
  l&&(e?c.stroke():(v=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=v))):"square"===b?(c.beginPath(),c.rect(a-g/2,d-g/2,g,g),h&&c.fill(),l&&(e?c.stroke():(v=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=v))):"triangle"===b?(c.beginPath(),c.moveTo(a-g/2,d+g/2),c.lineTo(a+g/2,d+g/2),c.lineTo(a,d-g/2),c.closePath(),h&&c.fill(),l&&(e?c.stroke():(v=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=v)),c.beginPath()):
933
- "cross"===b&&(c.strokeStyle=h,c.lineWidth=g/4,c.beginPath(),c.moveTo(a-g/2,d-g/2),c.lineTo(a+g/2,d+g/2),c.stroke(),c.moveTo(a+g/2,d-g/2),c.lineTo(a-g/2,d+g/2),c.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var c=a[d];s.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return t}();Ka.version="v3.7.27 GA";window.CanvasJS&&(Ka&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=Ka);ea.StockChart={width:500,height:600,backgroundColor:"white",theme:"light1",
933
+ "cross"===b&&(c.strokeStyle=h,c.lineWidth=g/4,c.beginPath(),c.moveTo(a-g/2,d-g/2),c.lineTo(a+g/2,d+g/2),c.stroke(),c.moveTo(a+g/2,d-g/2),c.lineTo(a-g/2,d+g/2),c.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var c=a[d];s.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return t}();Ka.version="v3.7.29 GA";window.CanvasJS&&(Ka&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=Ka);ea.StockChart={width:500,height:600,backgroundColor:"white",theme:"light1",
934
934
  animationEnabled:!1,animationDuration:1200,culture:"en",creditHref:"",creditText:"CanvasJS",exportEnabled:!1,exportFileName:"StockChart",colorSet:"colorSet1",rangeChanging:null,rangeChanged:null,publicProperties:{title:"readWrite",subtitles:"readWrite",toolbar:"readWrite",navigator:"readWrite",rangeSelector:"readWrite",charts:"readWrite",options:"readWrite",bounds:"readOnly",container:"readOnly",selectedColorSet:"readOnly"}};ea.Navigator={enabled:!0,width:500,height:70,verticalAlign:"bottom",horizontalAlign:"center",
935
935
  dynamicUpdate:!0,backgroundColor:"#fff",animationEnabled:!1,animationDuration:1200,theme:"light1",publicProperties:{slider:"readWrite",backgroundColor:"readWrite",animationEnabled:"readWrite",animationDuration:"readWrite",theme:"readWrite",axisX:"readWrite",axisY:"readWrite",axisX2:"readWrite",axisY2:"readWrite",data:"readWrite",options:"readWrite",bounds:"readOnly"}};ea.RangeSelector={enabled:!0,width:500,height:35,label:"Range",verticalAlign:"top",horizontalAlign:"center",selectedRangeButtonIndex:null,
936
936
  publicProperties:{options:"readWrite",buttons:"readWrite",inputFields:"readWrite",buttonStyle:"readWrite",bounds:"readOnly"}};ea.RangeButton={range:null,rangeType:null,label:null,style:"position: inline; margin: 5px 0;text-align:center;cursor: pointer;",backgroundColorDisabled:"#ddd",publicProperties:{options:"readWrite",bounds:"readOnly"}};ea.ButtonStyle={backgroundColor:"#fff",backgroundColorOnHover:"#2196f3",backgroundColorOnSelect:"#2196f3",borderColor:"#2196f3",borderThickness:2,labelFontColor:"#000",
@@ -1116,7 +1116,7 @@ l[d]:this.label};N.prototype.render=function(){this.textBlock.render(!0)};ia(W,a
1116
1116
  this.style.fontFamily,this.elements[d].style.fontWeight=this.style.fontWeight,this.elements[d].style.lineHeight=1,isNaN(this.style.padding)?(this.elements[d].style.paddingTop=this.style.padding.top+"px",this.elements[d].style.paddingRight=this.style.padding.right+"px",this.elements[d].style.paddingBottom=this.style.padding.bottom+"px",this.elements[d].style.paddingLeft=this.style.padding.left+"px"):this.elements[d].style.padding=this.style.padding+"px",this.elements[d].style.mozAppearance=this.elements[d].style.webkitAppearance=
1117
1117
  this.elements[d].style.appearance="none",this.elements[d].style.webkitBorderRadius=0,this.elements[d].style.mozBorderRadius=0,this.elements[d].style.borderRadius=0,this.elements[d].style.boxSizing="content-box";this.parent=this.rangeSelector=this.stockChart.rangeSelector}};ia(Y,aa);Y.prototype._updateOptions=function(){this.updateOption("backgroundColor");this.updateOption("backgroundColorOnHover");this.updateOption("backgroundColorOnSelect");this.updateOption("borderColor");this.updateOption("borderThickness");
1118
1118
  this.updateOption("labelFontColor");this.updateOption("labelFontColorOnHover");this.updateOption("labelFontSize");this.updateOption("labelFontStyle");this.updateOption("labelFontFamily");this.updateOption("labelFontWeight");this.updateOption("width");this.updateOption("maxWidth");this.updateOption("padding");this.updateOption("spacing");this.updateOption("cursor")};ia(ba,aa);ba.prototype._updateOptions=function(){this.updateOption("backgroundColor");this.updateOption("borderColor");this.updateOption("borderThickness");
1119
- this.updateOption("borderColorOnFocus");this.updateOption("fontColor");this.updateOption("fontSize");this.updateOption("fontStyle");this.updateOption("fontFamily");this.updateOption("fontWeight");this.updateOption("width");this.updateOption("maxWidth");this.updateOption("padding");this.updateOption("spacing");this.updateOption("cursor")};return F}();T.version="v1.7.28 GA";window.CanvasJS&&(T&&(!window.CanvasJS.StockChart&&window.CanvasJS.Chart)&&(window.CanvasJS.StockChart=T),T&&!window.CanvasJS.Chart&&
1119
+ this.updateOption("borderColorOnFocus");this.updateOption("fontColor");this.updateOption("fontSize");this.updateOption("fontStyle");this.updateOption("fontFamily");this.updateOption("fontWeight");this.updateOption("width");this.updateOption("maxWidth");this.updateOption("padding");this.updateOption("spacing");this.updateOption("cursor")};return F}();T.version="v1.7.29 GA";window.CanvasJS&&(T&&(!window.CanvasJS.StockChart&&window.CanvasJS.Chart)&&(window.CanvasJS.StockChart=T),T&&!window.CanvasJS.Chart&&
1120
1120
  (window.CanvasJS.Chart=Ka,window.CanvasJS.StockChart=T))})();
1121
1121
 
1122
1122
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvasjs/stockcharts",
3
- "version": "1.7.28",
3
+ "version": "1.7.29",
4
4
  "description": "CanvasJS JavaScript StockCharts",
5
5
  "main": "canvasjs.stock.min.js",
6
6
  "keywords": [