@canvasjs/charts 3.12.3 → 3.12.4
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 +1 -1
- package/canvasjs.min.js +3 -3
- package/package.json +1 -1
package/LICENSE
CHANGED
package/canvasjs.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
CanvasJS Chart - v3.12.
|
|
2
|
+
CanvasJS Chart - v3.12.4 GA - https://canvasjs.com/
|
|
3
3
|
Copyright 2025 fenopix
|
|
4
4
|
|
|
5
5
|
--------------------- License Information --------------------
|
|
@@ -508,7 +508,7 @@ h.indexLabelWrap:k.indexLabelWrap;g.indexLabelTextAlign=h.indexLabelTextAlign?h.
|
|
|
508
508
|
maxWidth:g.indexLabelMaxWidth,maxHeight:g.indexLabelWrap?5*g.indexLabelFontSize:1.5*g.indexLabelFontSize,text:g.indexLabelText,padding:g.indexLabelPadding,textBaseline:"middle"});g.indexLabelTextBlock.measureText()}q=h=0;n=!1;for(d=0;d<m.length;d++)g=f[(c+d)%m.length],1<a&&(g.midAngle>Math.PI/2-s&&g.midAngle<Math.PI/2+s)&&(h<=a/2&&!n?(g.hemisphere="right",h++):(g.hemisphere="left",n=!0));n=!1;for(d=0;d<m.length;d++)g=f[(e+d)%m.length],1<b&&(g.midAngle>3*Math.PI/2-s&&g.midAngle<3*Math.PI/2+s)&&(q<=
|
|
509
509
|
b/2&&!n?(g.hemisphere="left",q++):(g.hemisphere="right",n=!0))}}function c(a,b){var c=r.plotArea.ctx;c.clearRect(p.x1,p.y1,p.width,p.height);c.fillStyle=r.backgroundColor;c.fillRect(p.x1,p.y1,p.width,p.height);for(c=0;c<m.length;c++){var e=f[c].startAngle,d=f[c].endAngle;if(d>e){var h=0.07*B*Math.cos(f[c].midAngle),q=0.07*B*Math.sin(f[c].midAngle),g=!1;if(m[c].exploded){if(1E-9<Math.abs(f[c].center.x-(w.x+h))||1E-9<Math.abs(f[c].center.y-(w.y+q)))f[c].center.x=w.x+h*a,f[c].center.y=w.y+q*a,g=!0}else if(0<
|
|
510
510
|
Math.abs(f[c].center.x-w.x)||0<Math.abs(f[c].center.y-w.y))f[c].center.x=w.x+h*(1-a),f[c].center.y=w.y+q*(1-a),g=!0;g&&b&&(h={},h.dataSeries=k,h.dataPoint=k.dataPoints[c],h.index=c,r.toolTip.highlightObjects([h]));ka(r.plotArea.ctx,f[c].center,f[c].radius,m[c].color?m[c].color:k._colorSet[c%k._colorSet.length],k.type,e,d,k.fillOpacity,f[c].percentInnerRadius)}}c=r.plotArea.ctx;c.save();c.fillStyle="black";c.strokeStyle="grey";c.textBaseline="middle";c.lineJoin="round";for(e=e=0;e<m.length;e++)d=f[e],
|
|
511
|
-
d.indexLabelText&&(d.indexLabelTextBlock.y-=d.indexLabelTextBlock.height/2-d.indexLabelTextBlock.
|
|
511
|
+
d.indexLabelText&&(d.indexLabelTextBlock.y-=d.indexLabelTextBlock.height/2-d.indexLabelTextBlock._lineHeight/2,h=0,h="left"===d.hemisphere?"inside"!==k.indexLabelPlacement?-(d.indexLabelTextBlock.width+n):-d.indexLabelTextBlock.width/2:"inside"!==k.indexLabelPlacement?n:-d.indexLabelTextBlock.width/2,d.indexLabelTextBlock.x+=h,d.indexLabelTextBlock.render(!0),d.indexLabelTextBlock.x-=h,d.indexLabelTextBlock.y+=d.indexLabelTextBlock.height/2-d.indexLabelTextBlock._lineHeight/2,"inside"!==d.indexLabelPlacement&&
|
|
512
512
|
0<d.indexLabelLineThickness&&(h=d.center.x+B*Math.cos(d.midAngle),q=d.center.y+B*Math.sin(d.midAngle),c.strokeStyle=d.indexLabelLineColor,c.lineWidth=d.indexLabelLineThickness,c.setLineDash&&c.setLineDash(I(d.indexLabelLineDashType,d.indexLabelLineThickness)),c.beginPath(),c.moveTo(h,q),c.lineTo(d.indexLabelTextBlock.x,d.indexLabelTextBlock.y),c.lineTo(d.indexLabelTextBlock.x+("left"===d.hemisphere?-n:n),d.indexLabelTextBlock.y),c.stroke()),c.lineJoin="miter");c.save()}function b(a,b){var c=0,c=a.indexLabelTextBlock.y-
|
|
513
513
|
a.indexLabelTextBlock.height/2,d=a.indexLabelTextBlock.y+a.indexLabelTextBlock.height/2,e=b.indexLabelTextBlock.y-b.indexLabelTextBlock.height/2,f=b.indexLabelTextBlock.y+b.indexLabelTextBlock.height/2;return c=b.indexLabelTextBlock.y>a.indexLabelTextBlock.y?e-d:c-f}function d(a){for(var c=null,d=1;d<m.length;d++)if(c=(a+d+f.length)%f.length,f[c].hemisphere!==f[a].hemisphere){c=null;break}else if(f[c].indexLabelText&&c!==a&&(0>b(f[c],f[a])||("right"===f[a].hemisphere?f[c].indexLabelTextBlock.y>=f[a].indexLabelTextBlock.y:
|
|
514
514
|
f[c].indexLabelTextBlock.y<=f[a].indexLabelTextBlock.y)))break;else c=null;return c}function h(a,c,e){e=(e||0)+1;if(1E3<e)return 0;c=c||0;var q=0,k=w.y-1*x,g=w.y+1*x;if(0<=a&&a<m.length){var l=f[a];if(0>c&&l.indexLabelTextBlock.y<k||0<c&&l.indexLabelTextBlock.y>g)return 0;var n=0,p=0,p=n=n=0;0>c?l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2>k&&l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2+c<k&&(c=-(k-(l.indexLabelTextBlock.y-l.indexLabelTextBlock.height/2+c))):l.indexLabelTextBlock.y+
|
|
@@ -962,7 +962,7 @@ ia.prototype.cancelAllAnimations=function(){this.animations=[];this.animationReq
|
|
|
962
962
|
b.width,b.height,d-d*a,0,a*c.canvas.width/X,c.canvas.height/X)}},xClipAnimation:function(a,e){if(0!==a){var c=e.dest,b=e.source.canvas;c.save();0<a&&c.drawImage(b,0,0,b.width*a,b.height,0,0,b.width*a/X,b.height/X);c.restore()}},fadeInAnimation:function(a,e){if(0!==a){var c=e.dest,b=e.source.canvas;c.save();c.globalAlpha=a;c.drawImage(b,0,0,b.width,b.height,0,0,c.canvas.width/X,c.canvas.height/X);c.restore()}},easing:{linear:function(a,e,c,b){return c*a/b+e},easeOutQuad:function(a,e,c,b){return-c*
|
|
963
963
|
(a/=b)*(a-2)+e},easeOutQuart:function(a,e,c,b){return-c*((a=a/b-1)*a*a*a-1)+e},easeInQuad:function(a,e,c,b){return c*(a/=b)*a+e},easeInQuart:function(a,e,c,b){return c*(a/=b)*a*a*a+e}}},ca={drawMarker:function(a,e,c,b,d,h,g,l){if(c){var r=1;c.fillStyle=h?h:"#000000";c.strokeStyle=g?g:"#000000";c.lineWidth=l?l:0;c.setLineDash&&c.setLineDash(I("solid",l));"circle"===b?(c.moveTo(a,e),c.beginPath(),c.arc(a,e,d/2,0,2*Math.PI,!1),h&&c.fill(),l&&(g?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle=
|
|
964
964
|
"black",c.stroke(),c.globalAlpha=r))):"square"===b?(c.beginPath(),c.rect(a-d/2,e-d/2,d,d),h&&c.fill(),l&&(g?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r))):"triangle"===b?(c.beginPath(),c.moveTo(a-d/2,e+d/2),c.lineTo(a+d/2,e+d/2),c.lineTo(a,e-d/2),c.closePath(),h&&c.fill(),l&&(g?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r)),c.beginPath()):"cross"===b&&(c.strokeStyle=h,c.lineWidth=d/4,c.beginPath(),
|
|
965
|
-
c.moveTo(a-d/2,e-d/2),c.lineTo(a+d/2,e+d/2),c.stroke(),c.moveTo(a+d/2,e-d/2),c.lineTo(a-d/2,e+d/2),c.stroke())}},drawMarkers:function(a){for(var e=0;e<a.length;e++){var c=a[e];ca.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return v}();u.version="v3.12.
|
|
965
|
+
c.moveTo(a-d/2,e-d/2),c.lineTo(a+d/2,e+d/2),c.stroke(),c.moveTo(a+d/2,e-d/2),c.lineTo(a-d/2,e+d/2),c.stroke())}},drawMarkers:function(a){for(var e=0;e<a.length;e++){var c=a[e];ca.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return v}();u.version="v3.12.4 GA";window.CanvasJS&&(u&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=u)})();
|
|
966
966
|
|
|
967
967
|
/*
|
|
968
968
|
excanvas is used to support IE678 which do not implement HTML5 Canvas Element. You can safely remove the following excanvas code if you don't need to support older browsers.
|