@canvasjs/charts 3.7.14 → 3.7.15

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.
Files changed (2) hide show
  1. package/canvasjs.min.js +3 -3
  2. package/package.json +1 -1
package/canvasjs.min.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- CanvasJS Chart - v3.7.14 GA - https://canvasjs.com/
2
+ CanvasJS Chart - v3.7.15 GA - https://canvasjs.com/
3
3
  Copyright 2023 fenopix
4
4
 
5
5
  --------------------- License Information --------------------
@@ -501,7 +501,7 @@ g[a].indexLabelTextBlock.y)))break;else c=null;return c}function f(a,c,d){d=(d||
501
501
  Math.PI/2-t&&p.midAngle<Math.PI/2+t?(k=(a-1+g.length)%g.length,k=g[k],a=g[(a+1+g.length)%g.length],"left"===p.hemisphere&&"right"===k.hemisphere&&c>k.indexLabelTextBlock.x?c=k.indexLabelTextBlock.x-15:"right"===p.hemisphere&&("left"===a.hemisphere&&c<a.indexLabelTextBlock.x)&&(c=a.indexLabelTextBlock.x+15)):p.midAngle>3*Math.PI/2-t&&p.midAngle<3*Math.PI/2+t&&(k=(a-1+g.length)%g.length,k=g[k],a=g[(a+1+g.length)%g.length],"right"===p.hemisphere&&"left"===k.hemisphere&&c<k.indexLabelTextBlock.x?c=k.indexLabelTextBlock.x+
502
502
  15:"left"===p.hemisphere&&("right"===a.hemisphere&&c>a.indexLabelTextBlock.x)&&(c=a.indexLabelTextBlock.x-15)),p.indexLabelTextBlock.y=d,p.indexLabelTextBlock.x=c,p.indexLabelAngle=Math.atan2(p.indexLabelTextBlock.y-y.y,p.indexLabelTextBlock.x-y.x))}return m}function m(){var a=l.plotArea.ctx;a.fillStyle="grey";a.strokeStyle="grey";a.font="16px Arial";a.textBaseline="middle";for(var c=a=0,d=0,m=!0,c=0;10>c&&(1>c||0<d);c++){if(k.radius||!k.radius&&"undefined"!==typeof k.innerRadius&&null!==k.innerRadius&&
503
503
  B-d<=D)m=!1;m&&(B-=d);d=0;if("inside"!==k.indexLabelPlacement){w=B*v;for(a=0;a<n.length;a++){var h=g[a];h.indexLabelTextBlock.x=y.x+w*Math.cos(h.midAngle);h.indexLabelTextBlock.y=y.y+w*Math.sin(h.midAngle);h.indexLabelAngle=h.midAngle;h.radius=B;h.percentInnerRadius=E}for(var u,r,a=0;a<n.length;a++){var h=g[a],t=e(a);if(null!==t){u=g[a];r=g[t];var z=0,z=b(u,r)-s;if(0>z){for(var x=r=0,F=0;F<n.length;F++)F!==a&&g[F].hemisphere===h.hemisphere&&(g[F].indexLabelTextBlock.y<h.indexLabelTextBlock.y?r++:
504
- x++);r=z/(r+x||1)*x;var x=-1*(z-r),I=F=0;"right"===h.hemisphere?(F=f(a,r),x=-1*(z-F),I=f(t,x),+I.toFixed(A)<+x.toFixed(A)&&+F.toFixed(A)<=+r.toFixed(A)&&f(a,-(x-I))):(F=f(t,r),x=-1*(z-F),I=f(a,x),+I.toFixed(A)<+x.toFixed(A)&&+F.toFixed(A)<=+r.toFixed(A)&&f(t,-(x-I)))}}}}else for(a=0;a<n.length;a++)h=g[a],w="pie"===k.type?0.7*B:0.8*B,t=y.x+w*Math.cos(h.midAngle),r=y.y+w*Math.sin(h.midAngle),h.indexLabelTextBlock.x=t,h.indexLabelTextBlock.y=r;for(a=0;a<n.length;a++)if(h=g[a],t=h.indexLabelTextBlock.measureText(),
504
+ x++);r=z/(r+x||1)*x;var x=-1*(z-r),I=F=0;"right"===h.hemisphere?(F=f(a,r),x=-1*(z-F),I=f(t,x),+I.toFixed(A)<+x.toFixed(A)&&+F.toFixed(A)<=+r.toFixed(A)&&f(a,-(x-I))):(F=f(t,r),x=-1*(z-F),I=f(a,x),+I.toFixed(A)<+x.toFixed(A)&&+F.toFixed(A)<=+r.toFixed(A)&&f(t,-(x-I)))}}}}else for(a=0;a<n.length;a++)h=g[a],w="pie"===k.type?0.7*B:0.85*B,t=y.x+w*Math.cos(h.midAngle),r=y.y+w*Math.sin(h.midAngle),h.indexLabelTextBlock.x=t,h.indexLabelTextBlock.y=r;for(a=0;a<n.length;a++)if(h=g[a],t=h.indexLabelTextBlock.measureText(),
505
505
  0!==t.height&&0!==t.width)t=t=0,"right"===h.hemisphere?(t=q.x2-(h.indexLabelTextBlock.x+h.indexLabelTextBlock.width+p),t*=-1):t=q.x1-(h.indexLabelTextBlock.x-h.indexLabelTextBlock.width-p),0<t&&(!m&&h.indexLabelText&&(r="right"===h.hemisphere?q.x2-h.indexLabelTextBlock.x:h.indexLabelTextBlock.x-q.x1,0.3*h.indexLabelTextBlock.maxWidth>r?h.indexLabelText="":h.indexLabelTextBlock.maxWidth=0.85*r,0.3*h.indexLabelTextBlock.maxWidth<r&&(h.indexLabelTextBlock.x-="right"===h.hemisphere?2:-2)),Math.abs(h.indexLabelTextBlock.y-
506
506
  h.indexLabelTextBlock.height/2-y.y)<B||Math.abs(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2-y.y)<B)&&(t/=Math.abs(Math.cos(h.indexLabelAngle)),9<t&&(t*=0.3),t>d&&(d=t)),t=t=0,0<h.indexLabelAngle&&h.indexLabelAngle<Math.PI?(t=q.y2-(h.indexLabelTextBlock.y+h.indexLabelTextBlock.height/2+5),t*=-1):t=q.y1-(h.indexLabelTextBlock.y-h.indexLabelTextBlock.height/2-5),0<t&&(!m&&h.indexLabelText&&(r=0<h.indexLabelAngle&&h.indexLabelAngle<Math.PI?-1:1,0===f(a,t*r)&&f(a,2*r)),Math.abs(h.indexLabelTextBlock.x-
507
507
  y.x)<B&&(t/=Math.abs(Math.sin(h.indexLabelAngle)),9<t&&(t*=0.3),t>d&&(d=t)));var M=function(a,b,c){for(var d=[],e=0;d.push(g[b]),b!==c;b=(b+1+n.length)%n.length);d.sort(function(a,b){return a.y-b.y});for(b=0;b<d.length;b++)if(c=d[b],e<0.7*a)e+=c.indexLabelTextBlock.height,c.indexLabelTextBlock.text="",c.indexLabelText="",c.indexLabelTextBlock.measureText();else break};(function(){for(var a=-1,c=-1,d=0,f=!1,k=0;k<n.length;k++)if(f=!1,u=g[k],u.indexLabelText){var m=e(k);if(null!==m){var h=g[m];z=0;
@@ -925,7 +925,7 @@ this.animationRequestId=this.chart.requestAnimFrame.call(window,function(){f.ani
925
925
  ka)}},xScaleAnimation:function(a,d){if(0!==a){var c=d.dest,b=d.source.canvas,e=d.animationBase;c.drawImage(b,0,0,b.width,b.height,e-e*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/
926
926
  ka);c.restore()}},easing:{linear:function(a,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}}},$={drawMarker:function(a,d,c,b,e,f,h,l){if(c){var r=1;c.fillStyle=f?f:"#000000";c.strokeStyle=h?h:"#000000";c.lineWidth=l?l:0;c.setLineDash&&c.setLineDash(I("solid",l));"circle"===b?(c.moveTo(a,d),c.beginPath(),
927
927
  c.arc(a,d,e/2,0,2*Math.PI,!1),f&&c.fill(),l&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r))):"square"===b?(c.beginPath(),c.rect(a-e/2,d-e/2,e,e),f&&c.fill(),l&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r))):"triangle"===b?(c.beginPath(),c.moveTo(a-e/2,d+e/2),c.lineTo(a+e/2,d+e/2),c.lineTo(a,d-e/2),c.closePath(),f&&c.fill(),l&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle=
928
- "black",c.stroke(),c.globalAlpha=r)),c.beginPath()):"cross"===b&&(c.strokeStyle=f,c.lineWidth=e/4,c.beginPath(),c.moveTo(a-e/2,d-e/2),c.lineTo(a+e/2,d+e/2),c.stroke(),c.moveTo(a+e/2,d-e/2),c.lineTo(a-e/2,d+e/2),c.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var c=a[d];$.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return l}();x.version="v3.7.14 GA";window.CanvasJS&&(x&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=x)})();
928
+ "black",c.stroke(),c.globalAlpha=r)),c.beginPath()):"cross"===b&&(c.strokeStyle=f,c.lineWidth=e/4,c.beginPath(),c.moveTo(a-e/2,d-e/2),c.lineTo(a+e/2,d+e/2),c.stroke(),c.moveTo(a+e/2,d-e/2),c.lineTo(a-e/2,d+e/2),c.stroke())}},drawMarkers:function(a){for(var d=0;d<a.length;d++){var c=a[d];$.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return l}();x.version="v3.7.15 GA";window.CanvasJS&&(x&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=x)})();
929
929
  /*tslint:enable*/
930
930
  /*eslint-enable*/
931
931
  /*jshint ignore:end*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvasjs/charts",
3
- "version": "3.7.14",
3
+ "version": "3.7.15",
4
4
  "description": "CanvasJS JavaScript Charts",
5
5
  "main": "canvasjs.min.js",
6
6
  "keywords": [