@canvasjs/charts 3.7.37 → 3.7.38
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.7.
|
|
2
|
+
CanvasJS Chart - v3.7.38 GA - https://canvasjs.com/
|
|
3
3
|
Copyright 2024 fenopix
|
|
4
4
|
|
|
5
5
|
--------------------- License Information --------------------
|
|
@@ -539,7 +539,7 @@ null!==w[U].indexLabel&&0<w[U].indexLabel.toString().length)&&(N=!0),!N&&("undef
|
|
|
539
539
|
if(0!=s.length&&(s.dataPoints&&s.visible)&&0!==w.length){var S,H;a=75*G/100;var Z=30*(L-a)/100;"funnel"===s.type?(S=r(s.options.neckHeight)?0.35*E:s.neckHeight,H=r(s.options.neckWidth)?0.25*a:s.neckWidth,"string"===typeof S&&S.match(/%$/)?(S=parseInt(S),S=S*E/100):S=parseInt(S),"string"===typeof H&&H.match(/%$/)?(H=parseInt(H),H=H*a/100):H=parseInt(H),S>E?S=E:0>=S&&(S=0),H>a?H=a-0.5:0>=H&&(H=0)):"pyramid"===s.type&&(H=S=0,s.reversed=s.reversed?!1:!0);var B=U+a/2,V=U,X=U+a,W=s.reversed?Q:M,O=B-H/2,
|
|
540
540
|
Y=B+H/2,Ea=s.reversed?M+S:Q-S,ua=s.reversed?M:Q;a=[];var B=[],T=[],G=[],$=M,da,ba=(Ea-W)/(O-V),ga=-ba,U="area"===(s.valueRepresents?s.valueRepresents:"height")?c():d();if(-1!==U){if(s.reversed)for(G.push($),H=U.length-1;0<H;H--)$+=U[H],G.push($);else for(H=0;H<U.length;H++)$+=U[H],G.push($);if(s.reversed)for(H=0;H<U.length;H++)G[H]<Ea?(a.push(O),B.push(Y),da=H):(a.push((G[H]-W+ba*V)/ba),B.push((G[H]-W+ga*X)/ga));else for(H=0;H<U.length;H++)G[H]<Ea?(a.push((G[H]-W+ba*V)/ba),B.push((G[H]-W+ga*X)/ga),
|
|
541
541
|
da=H):(a.push(O),B.push(Y));for(H=0;H<U.length-1;H++)$=s.reversed?w[w.length-1-H].color?w[w.length-1-H].color:s._colorSet[(w.length-1-H)%s._colorSet.length]:w[H].color?w[H].color:s._colorSet[H%s._colorSet.length],H===da?T.push({x1:a[H],y1:G[H],x2:B[H],y2:G[H],x3:Y,y3:Ea,x4:B[H+1],y4:G[H+1],x5:a[H+1],y5:G[H+1],x6:O,y6:Ea,id:H,height:G[H+1]-G[H],color:$}):T.push({x1:a[H],y1:G[H],x2:B[H],y2:G[H],x3:B[H+1],y3:G[H+1],x4:a[H+1],y4:G[H+1],id:H,height:G[H+1]-G[H],color:$});var ea=2,I=[],ia=!1,aa=[],ja=[],
|
|
542
|
-
U=!1;a=a=0;Fa(aa);for(H=0;H<w.length;H++)w[H].exploded&&(U=!0,s.reversed?aa.push(w.length-1-H):aa.push(H));R.clearRect(v.x1,v.y1,v.width,v.height);R.fillStyle=x.backgroundColor;R.fillRect(v.x1,v.y1,v.width,v.height);if(N&&s.visible&&(b(),g(),
|
|
542
|
+
U=!1;a=a=0;Fa(aa);for(H=0;H<w.length;H++)w[H].exploded&&(U=!0,s.reversed?aa.push(w.length-1-H):aa.push(H));R.clearRect(v.x1,v.y1,v.width,v.height);R.fillStyle=x.backgroundColor;R.fillRect(v.x1,v.y1,v.width,v.height);if(N&&s.visible&&(b(),g(),"inside"!==s.indexLabelPlacement)){e();p();for(H=0;H<w.length;H++)I[H].isDirty||(a=I[H].textBlock.x+I[H].width,a=(L-a)/2,0==H&&(C=a),C>a&&(C=a));for(H=0;H<T.length;H++)T[H].x1+=C,T[H].x2+=C,T[H].x3+=C,T[H].x4+=C,T[H].x5&&(T[H].x5+=C,T[H].x6+=C),I[H].textBlock.x+=
|
|
543
543
|
C}for(H=0;H<T.length;H++)C=T[H],sa(R,C,s.fillOpacity),ja.push(C.y1);y(R);N&&s.visible&&("inside"===s.indexLabelPlacement||x.animationEnabled||m(R),x.animationEnabled||z());if(!N)for(H=0;H<w.length;H++)C=s.dataPointIds[H],a={id:C,objectType:"dataPoint",dataPointIndex:H,dataSeriesIndex:0,funnelSection:T[s.reversed?w.length-1-H:H]},x._eventManager.objectMap[C]=a;!x.animationEnabled&&U?l(x,-1,0):x.animationEnabled&&!x.animatedRender&&l(x,-1,0);this.funnelPyramidClickHandler=function(a){var b=-1;if(!ia&&
|
|
544
544
|
!x.isAnimating&&(r(a.dataSeries.explodeOnClick)||a.dataSeries.explodeOnClick)&&(b=s.reversed?w.length-1-a.dataPointIndex:a.dataPointIndex,0<=b)){a=b;if("funnel"===s.type||"pyramid"===s.type)s.reversed?w[w.length-1-a].exploded=w[w.length-1-a].exploded?!1:!0:w[a].exploded=w[a].exploded?!1:!0;l(x,b,500)}};return{source:R,dest:this.plotArea.ctx,animationCallback:function(a,b){P.fadeInAnimation(a,b);1<=a&&(l(x,-1,500),y(x.plotArea.ctx||x.ctx))},easingFunction:P.easing.easeInQuad,animationBase:0}}}}};l.prototype.requestAnimFrame=
|
|
545
545
|
function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){window.setTimeout(a,1E3/60)}}();l.prototype.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout;l.prototype.set=function(a,d,c){c="undefined"===
|
|
@@ -930,7 +930,7 @@ this.chart.requestAnimFrame.call(window,function(){g.animate.call(g)}):this.char
|
|
|
930
930
|
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/ma,c.canvas.height/ma)}},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/ma,b.height/ma);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/ma,c.canvas.height/ma);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}}},Y={drawMarker:function(a,d,c,b,e,g,h,l){if(c){var r=1;c.fillStyle=g?g:"#000000";c.strokeStyle=h?h:"#000000";c.lineWidth=l?l:0;c.setLineDash&&c.setLineDash(K("solid",l));"circle"===b?(c.moveTo(a,d),c.beginPath(),c.arc(a,d,e/2,0,2*Math.PI,!1),g&&c.fill(),
|
|
932
932
|
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),g&&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(),g&&c.fill(),l&&(h?c.stroke():(r=c.globalAlpha,c.globalAlpha=0.15,c.strokeStyle="black",c.stroke(),c.globalAlpha=r)),c.beginPath()):
|
|
933
|
-
"cross"===b&&(c.strokeStyle=g,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];Y.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return l}();E.version="v3.7.
|
|
933
|
+
"cross"===b&&(c.strokeStyle=g,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];Y.drawMarker(c.x,c.y,c.ctx,c.type,c.size,c.color,c.borderColor,c.borderThickness)}}};return l}();E.version="v3.7.38 GA";window.CanvasJS&&(E&&!window.CanvasJS.Chart)&&(window.CanvasJS.Chart=E)})();
|
|
934
934
|
|
|
935
935
|
/*
|
|
936
936
|
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.
|