@syncfusion/ej2-circulargauge
Version:
Essential JS 2 CircularGauge Components
10 lines • 159 kB
JavaScript
/*!
* filename: ej2-circulargauge.min.js
* version : 29.2.4
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
* Use of this code is subject to the terms of our license.
* A copy of the current license can be obtained at any time by e-mailing
* licensing@syncfusion.com. Any infringement will be prosecuted under
* applicable laws.
*/
this.ej=this.ej||{},this.ej.circulargauge=function(e,t,i,n){"use strict";function o(e,i){var n=document.getElementById("gauge-measuretext");null===n&&(n=t.createElement("text",{id:"gauge-measuretext"}),document.body.appendChild(n));var o="position: absolute; visibility: hidden;;left: 0px; top: -100px; white-space: nowrap;"+r(i);return n.innerText=e,n.style.cssText=o,new $(n.clientWidth,n.clientHeight)}function a(e,t){return-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10)}function r(e){return"font-size:"+e.size+"; font-style:"+e.fontStyle+"; font-weight:"+e.fontWeight+"; font-family:"+e.fontFamily+";opacity:"+e.opacity+"; color:"+e.color+";"}function l(e,t,n,o,a){var r={},l=new i.SvgRenderer(""),s=a+" font-size:"+t.size+"; font-style:"+t.fontStyle+" ; font-weight:"+t.fontWeight+"; font-family:"+t.fontFamily+";";r={id:e.id,x:e.x,y:e.y,fill:n,"text-anchor":e.anchor,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine,style:s};var d=l.createText(r,e.text);return o.appendChild(d),d}function s(e,t,i,n){n=n||"Path";var o=i.renderer["draw"+n](e);return o.setAttribute("transform",e.transform),o.style.cssText=e.style,t.appendChild(o),o}function d(e,t){var i=t-e;return i=i<=0?i+360:i,0!==Math.floor(i/360)}function g(e,t){var i=t-e;return i<0?i+360:i}function u(e,t,i,n,o,a){var r;return o-=d(n,o)?1e-4:0,n-=90,o-=90,r=a?(e-i)*(g(n,o)/(t-i))+n:(r=o-(e-i)*(g(n,o)/(t-i)))<0?360+r:r,r=Math.round(r)>=360?r-360:Math.round(r)<0?360+r:r}function h(e,t){var i=Math.atan2(t.y-e.y,t.x-e.x);return i=Math.round((i<0?6.283+i:i)*(180/Math.PI))-270,i+=i<0?360:0}function p(e,t,i){var n=e*Math.PI/180;return new K(Math.cos(n)*t+i.x,Math.sin(n)*t+i.y)}function c(e,i,n,o,a,r,l,s){(t.isNullOrUndefined(l)||l.start!==l.end)&&(n-=d(i,n)?1e-4:0);var u=g(i,n),h=t.isNullOrUndefined(l)?o-a:"Outside"!==l.position||l.isLinearCircularGradient?"Cross"===l.position&&"AntiClockWise"===s.direction?o-(r+a)/2:o-a:o+a,c=t.isNullOrUndefined(l)?o-r:"Outside"!==l.position||l.isLinearCircularGradient?"Cross"===l.position&&"ClockWise"===s.direction?o-(r+a)/2:o-r:o+r,m=t.isNullOrUndefined(l)?o-(a+r)/2:"Outside"!==l.position||l.isLinearCircularGradient?"Cross"===l.position?o-(a+r)/4-("ClockWise"===s.direction?a:r)/2:o-(a+r)/2:o+(a+r)/2,y=t.isNullOrUndefined(l)||"Cross"!==l.position?o:o+(a+r)/4-("ClockWise"===s.direction?a:r)/2,f=t.isNullOrUndefined(l)||"Cross"!==l.position||"ClockWise"!==s.direction?o:o-(a-r)/2,x=t.isNullOrUndefined(l)||"Cross"!==l.position||"AntiClockWise"!==s.direction?o:o+(a-r)/2;return void 0!==a&&void 0!==r?(f="Cross"===l.position&&u>325?x:f,v(p(i,x,e),p(n,f,e),p(i,h,e),p(n,c,e),y,h,c,m,u<180?0:1,e,u,l,s)):C(p(i,o,e),p(n,o,e),o,u<180?0:1)}function m(e,t,i,n,o,a,r,l,s,d,g){return"M "+e.x+" "+e.y+" A "+i+" "+i+" 0 "+l+" 1 "+t.x+" "+t.y+" L "+d.x+" "+d.y+" A "+n+" "+o+" 0 "+l+" 0 "+g.x+" "+g.y+" A "+a+" "+r+" 0 "+l+" 0 "+s.x+" "+s.y+" Z "}function y(e,i,n,o,a,r,l,s,d,g,u,h,p,c,m){var y="M "+e.x+" "+e.y+" A "+n+" "+n+" 0 "+g+" 1 "+i.x+" "+i.y+" C "+o.x+" "+o.y+" "+a.x+" "+a.y+" "+h.x+" "+h.y;return t.isNullOrUndefined(s)&&t.isNullOrUndefined(d)?y+" A "+r+" "+l+" 0 "+g+" 0 "+u.x+" "+u.y+" C "+p.x+" "+p.y+" "+c.x+" "+c.y+" "+e.x+" "+e.y+" Z":y+" A "+r+" "+l+" 0 "+g+" 0 "+m.x+" "+m.y+" A "+s+" "+d+" 0 "+g+" 0 "+u.x+" "+u.y+" C "+p.x+" "+p.y+" "+c.x+" "+c.y+" "+e.x+" "+e.y+" Z"}function f(e,t,i,n,o,a,r,l){return"M "+e.x+" "+e.y+" A "+o+" "+o+" 0 "+l+" 1 "+t.x+" "+t.y+" L "+n.x+" "+n.y+" A "+r+" "+a+" 0 "+l+" 0 "+i.x+" "+i.y+" Z"}function v(e,t,i,n,o,a,r,l,s,d,g,u,h){var p,c,m=u.startWidth,y=u.endWidth,v=Math.abs(m-y);return m>y&&g<=260&&"Cross"!==u.position&&"Outside"!==u.position?(p=r+("ClockWise"===h.direction?-v/2:v/2),c=a+("ClockWise"===h.direction?v/2:-v/2),f(e,t,i,n,o,c,p,s)):y>m&&g<=260&&"Cross"!==u.position&&"Outside"!==u.position?(p=a+("ClockWise"===h.direction?-v/2:v/2),c=r+("ClockWise"===h.direction?v/2:-v/2),f(e,t,i,n,o,c,p,s)):y!==m||0===h.startAngle&&0===h.endAngle?g>260||!u.isLinearCircularGradient&&0===h.startAngle&&0===h.endAngle?u.roundedCornerRadius<=0&&u.startWidth===u.endWidth?f(e,t,i,n,o,a,r,s):x(e,t,i,n,o,a,r,l,s,d,null,null,null,null,m,y,g,u,h):"Cross"===u.position||"Outside"===u.position?f(e,t,i,n,o,l,l,s):f(e,t,i,n,o,a,r,s):f(e,t,i,n,o,a,r,s)}function x(e,i,n,o,a,r,l,s,d,g,h,c,v,x,A,C,P,S,w){if(t.isNullOrUndefined(S))return b(e,i,n,o,a,r,l,d,h,c,v,x);var F=void 0,R=void 0,_=Math.abs(A-C),T=void 0,E=void 0,M=u((S.start+S.end)/2,w.maximum,w.minimum,w.startAngle,w.endAngle,"ClockWise"===w.direction),k=A<C?p(M,l,g):p(M,r,g),O=Math.sqrt(Math.pow(o.x-k.x,2)+Math.pow(o.y-k.y,2))/2,L=Math.sqrt(Math.pow(g.x-n.x,2)+Math.pow(g.y-n.y,2)),I=Math.sqrt(Math.pow(g.x-k.x,2)+Math.pow(g.y-k.y,2));if(S.roundedCornerRadius<=0){if(_=0===_?1:_,o.y="Cross"===S.position&&"ClockWise"===w.direction&&P>325?o.y-_/2:o.y,("Cross"===S.position?330:325)<=P&&P<=360)return T="ClockWise"===w.direction?I/2:P>=345?r-_/2-C/2:"Cross"===S.position?r+_/4-A/2:r-_/2-A/2,E="ClockWise"===w.direction?L/2:"Cross"===S.position?l+_/4-C/4:"Outside"===S.position&&"AntiClockWise"===w.direction?P<345?r-_-C/4:r-_/2:l+_/2-C/2,m(e,i,a,O,O,T,E,d,n,o,k);if(P>260&&P<325&&"Cross"!==S.position&&"Outside"!==S.position){var D=s-_/2,B=s-_/2,z="ClockWise"===w.direction?P>=310:P<345;return P<310?f(e,i,n,o,a,D,B,d):P>=310||z?(D=s-_,f(e,i,n,o,a,B,D,d)):f(e,i,n,o,a,r,l,d)}if("Cross"===S.position){var N="ClockWise"===w.direction?P<=300&&P>=260?l-_/2-A/4:l-_-A/2:P<=300&&P>=260?l+_/4-A/4:l+_/4-A/2;return f(e,i,n,o,a,"ClockWise"===w.direction?P>325?P>340?r-A-_/4:r-_/4:r:r-_/4,N,d)}if("Outside"===S.position){if(P<325&&P>285){var W=void 0,G=A/2,U=W=s+_/2+G+C/2;return o.y="ClockWise"===w.direction&&A!==C&&A>_?o.y-_/2:o.y+G,f(e,i,n,o,a,U,W,d)}return f(e,i,n,o,a,s,s,d)}return f(e,i,n,o,a,r,l,d)}var j=w.endAngle<4?356:360;d=P>j?0:d;var V="ClockWise"===w.direction?327:322,H="ClockWise"===w.direction?328:325;if(C!==A||0===w.startAngle&&0===w.endAngle){if(P<=j&&P>V&&S.roundedCornerRadius>0)return F="ClockWise"===w.direction?P<334&&P>324?O-_/2:O-_/4:O,T=I/2,E="ClockWise"===w.direction?L/2+_/2:L/2,y(e,i,a,h,c,F,O,T,E,d,n,o,x,v,k);if(P>270&&P<H){var X=l+_/2-C/2,Y=l-_/2-C/2;return F=r-_/2-A/2,R="ClockWise"===w.direction?Y:X,y(e,i,a,h,c,F,R,null,null,d,n,o,x,v,null)}return b(e,i,n,o,a,r,l,d,h,c,v,x)}return b(e,i,n,o,a,r,l,d,h,c,v,x)}function b(e,t,i,n,o,a,r,l,s,d,g,u){return"M "+e.x+" "+e.y+" A "+o+" "+o+" 0 "+l+" 1 "+t.x+" "+t.y+" C "+s.x+" "+s.y+" "+d.x+" "+d.y+" "+n.x+" "+n.y+" A "+r+" "+a+" 0 "+l+" 0 "+i.x+" "+i.y+" C "+u.x+" "+u.y+" "+g.x+" "+g.y+" "+e.x+" "+e.y+" Z"}function A(e,t,i,n,o,a,r,l,s,u){var h=g(t,i-=d(t,i)?1e-4:0),c=a-r,m=a-l,y=a-(r+l)/2;return x(p(t,a,e),p(i,a,e),p(t,c,e),p(i,m,e),a,y,y,y,h<180?0:1,e,p(o,a,e),p(o,m,e),p(n,a,e),p(n,c,e),r,l,h,s,u)}function C(e,t,i,n){return"M "+e.x+" "+e.y+" A "+i+" "+i+" 0 "+n+" 1 "+t.x+" "+t.y}function P(e,i){var n=null;try{"function"==typeof e?n=t.compile(e):isNaN(parseFloat(e))&&document.querySelectorAll(e).length?"a"===e.charAt(0)&&"A"===e.charAt(0)||1===e.length||(n=t.compile(document.querySelector(e).innerHTML.trim())):(i.isVue||i.isVue3)&&(n=t.compile(e))}catch(i){n=t.compile(e)}return n}function S(e){var i=w(e);i&&t.remove(i)}function w(e){return document.getElementById(e)}function F(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function R(e,t){var i=e.replace(t.element.id,"").split("_Axis_")[1],n=i.indexOf("_Range_")>-1?i.split("_Range_"):i.indexOf("_Pointer_NeedleCap_")>-1?i.split("_Pointer_NeedleCap_"):i.indexOf("_Pointer_NeedleTail_")>-1?i.split("_Pointer_NeedleTail_"):i.indexOf("_Pointer_NeedleRect_")>-1?i.split("_Pointer_NeedleRect_"):i.indexOf("_Pointer_Needle_")>-1?i.split("_Pointer_Needle_"):i.indexOf("_Pointer_RangeBar_")>-1?i.split("_Pointer_RangeBar_"):i.indexOf("_Pointer_Marker_")>-1?i.split("_Pointer_Marker_"):i.indexOf("_Pointer_")>-1?i.split("_Pointer_"):i.split("_Annotation_");return{axisIndex:+n[0],pointerIndex:+n[n.length-1]}}function _(e){return e&&null!==e.match("{value}")?"":e}function T(e,i,n,o,a){var r,l,s="string"==typeof n.width?parseFloat(n.width):n.width,d="string"==typeof n.height?parseFloat(n.height):n.height,g=e.x,u=e.y,h=e.x+-s/2,p=e.y+-d/2,c=a.id.indexOf("Shape")>-1;switch(i){case"Circle":t.merge(a,{rx:s/2,ry:d/2,cx:g,cy:u});break;case"Diamond":r="M "+h+" "+u+" L "+g+" "+(u+-d/2)+" L "+(g+s/2)+" "+u+" L "+g+" "+(u+d/2)+" L "+h+" "+u+" Z",t.merge(a,{d:r});break;case"Rectangle":r="M "+h+" "+(u+-d/2)+" L "+(g+s/2)+" "+(u+-d/2)+" L "+(g+s/2)+" "+(u+d/2)+" L "+h+" "+(u+d/2)+" L "+h+" "+(u+-d/2)+" Z",t.merge(a,{d:r});break;case"Triangle":r=c?"M "+(h+s/2)+" "+p+" L "+(h+s)+" "+(p+d)+"L "+h+" "+(p+d)+" Z":"M "+g+" "+u+" L "+(g-d)+" "+(u-s/2)+"L "+(g-d)+" "+(u+s/2)+" Z",t.merge(a,{d:r});break;case"InvertedTriangle":r=c?"M "+(h+s)+" "+p+" L "+(h+s/2)+" "+(p+d)+"L "+h+" "+p+" Z":"M "+g+" "+u+" L "+(g+d)+" "+(u-s/2)+"L "+(g+d)+" "+(u+s/2)+" Z",t.merge(a,{d:r});break;case"Image":t.merge(a,{href:o,height:d,width:s,x:h,y:p});break;case"RightArrow":r="M "+(g+-s/2)+" "+(u-d/2)+" L "+(g+s/2)+" "+u+" L "+(g+-s/2)+" "+(u+d/2)+" L "+(g+-s/2)+" "+(u+d/2-(l=2))+" L "+(g+s/2-2*l)+" "+u+" L"+(g+-s/2)+" "+(u-d/2+l)+" Z",t.merge(a,{d:r});break;case"LeftArrow":a.fill=a.stroke,a.stroke="transparent",r="M "+(g+s/2)+" "+(u-d/2)+" L "+(g+-s/2)+" "+u+" L "+(g+s/2)+" "+(u+d/2)+" L "+(g+s/2)+" "+(u+d/2-(l=2))+" L "+(g+-s/2+2*l)+" "+u+" L"+(g+s/2)+" "+(u-d/2+l)+" Z",t.merge(a,{d:r})}return a}function E(e,i,n){t.setStyleAttribute(e,{stroke:n.color,"stroke-width":n.width,fill:i})}function M(e,t,i,n,o,a){return o-=d(n,o)?1e-4:0,e=e<n?e+360:e,a?(e-n)/g(n,o)*(t-i)+i:t-(e-n)/g(n,o)*(t-i)}function k(e,t){var i=e.replace(t.element.id,"").split("_Axis_")[1];return{axisIndex:+i[0],rangeIndex:+i.split("Range_")[1]}}function O(e){var t=["#50c917","#27d5ff","#fcde0b","#ffb133","#ff5985"];switch(e.toLowerCase()){case"tailwind":t=["#0369A1","#14B8A6","#15803D","#334155","#5A61F6","#65A30D","#8B5CF6","#9333EA","#F59E0B","#F97316"];break;case"tailwinddark":t=["#10B981","#22D3EE","#2DD4BF","#4ADE80","#8B5CF6","#E879F9","#F472B6","#F87171","#F97316","#FCD34D"];break;case"tailwind3":t=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"tailwind3dark":t=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"fluent":t=["#614570","#4C6FB1","#CC6952","#3F579A","#4EA09B","#6E7A89","#D4515C","#E6AF5D","#639751","#9D4D69"];break;case"fluentdark":t=["#8AB113","#2A72D5","#43B786","#584EC6","#E85F9C","#6E7A89","#EA6266","#EBA844","#26BC7A","#BC4870"];break;case"material3":t=["#6200EE","#E77A16","#82C100","#7107DC","#05BB3D","#D21020","#FAD200","#0085FF","#9204EA","#08EE9B"];break;case"material3dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;case"fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"fluent2dark":case"fluent2highcontrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"bootstrap5":case"bootstrap5dark":t=["#6610F2","#6f42C1","#D63384","#DC3545","#FD7E14","#FFC107","#198754","#0DCAF0"]}return t}function L(e){var t;switch(e.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":t={backgroundColor:"#333232",titleFontColor:"#ffffff",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#000000",tooltipFontSize:"13px",tooltipTextOpacity:1,labelColor:"#DADADA",lineColor:"#C8C8C8",majorTickColor:"#C8C8C8",minorTickColor:"#9A9A9A",pointerColor:"#9A9A9A",capColor:"#9A9A9A",needleColor:"#9A9A9A",needleTailColor:"#9A9A9A",fontSize:"12px",titleFontSize:"15px",labelFontFamily:"Segoe UI",fontFamily:"Segoe UI",fontWeight:"Normal",titleFontWeight:"Normal"};break;case"highcontrast":t={backgroundColor:"#000000",titleFontColor:"#FFFFFF",tooltipFillColor:"#ffffff",tooltipFontColor:"#000000",tooltipFontSize:"13px",tooltipTextOpacity:1,labelColor:"#FFFFFF",lineColor:"#FFFFFF",majorTickColor:"#FFFFFF",minorTickColor:"#FFFFFF",pointerColor:"#FFFFFF",capColor:"#FFFFFF",needleColor:"#FFFFFF",needleTailColor:"#FFFFFF",fontSize:"12px",titleFontSize:"15px",labelFontFamily:"Segoe UI",fontFamily:"Segoe UI",fontWeight:"Normal",titleFontWeight:"Normal"};break;case"bootstrap4":t={backgroundColor:"#FFFFFF",titleFontColor:"#212529",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFontSize:"13px",labelColor:"#212529",lineColor:"#DEE2E6",majorTickColor:"#ADB5BD",minorTickColor:"#CED4DA",pointerColor:"#6C757D",capColor:"#6C757D",needleColor:"#6C757D",needleTailColor:"#6C757D",fontFamily:"HelveticaNeue-Medium",fontSize:"12px",titleFontSize:"16px",labelFontFamily:"HelveticaNeue",tooltipFillOpacity:1,tooltipTextOpacity:.9,fontWeight:"Normal",titleFontWeight:"Normal"};break;case"tailwind":t={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#374151",tooltipFillColor:"#111827",tooltipFontColor:"#F9FAFB",tooltipFontSize:"13px",labelColor:"#6B7280",lineColor:"#E5E7EB",majorTickColor:"#9CA3AF",minorTickColor:"#9CA3AF",pointerColor:"#1F2937",capColor:"#1F2937",needleColor:"#1F2937",needleTailColor:"#1F2937",fontFamily:"Inter",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:.9,fontWeight:"Normal",titleFontWeight:"500"};break;case"tailwinddark":t={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#D1D5DB",tooltipFillColor:"#F9FAFB",tooltipFontColor:"#1F2937",tooltipFontSize:"13px",labelColor:"#9CA3AF",lineColor:"#374151",majorTickColor:"#6B7280",minorTickColor:"#6B7280",pointerColor:"#9CA3AF",capColor:"#9CA3AF",needleColor:"#9CA3AF",needleTailColor:"#9CA3AF",fontFamily:"Inter",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:.9,fontWeight:"Normal",titleFontWeight:"500"};break;case"tailwind3":t={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#111827",tooltipFillColor:"#111827",tooltipFontColor:"#F9FAFB",tooltipFontSize:"12px",labelColor:"#4B5563",lineColor:"#E5E7EB",majorTickColor:"#D1D5DB",minorTickColor:"#D1D5DB",pointerColor:"#1F2937",capColor:"#1F2937",needleColor:"#1F2937",needleTailColor:"#1F2937",fontFamily:"Inter",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"600"};break;case"tailwind3dark":t={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",tooltipFillColor:"#F9FAFB",tooltipFontColor:"#1F2937",tooltipFontSize:"12px",labelColor:"#D1D5DB",lineColor:"#282F3C",majorTickColor:"#374151",minorTickColor:"#374151",pointerColor:"#6B7280",capColor:"#6B7280",needleColor:"#6B7280",needleTailColor:"#6B7280",fontFamily:"Inter",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"600"};break;case"bootstrap5":t={backgroundColor:"transparent",titleFontColor:"#212529",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",fontSize:"10px",tooltipFontSize:"12px",labelColor:"#212529",lineColor:"#E9ECEF",majorTickColor:"#CED4DA",minorTickColor:"#CED4DA",pointerColor:"#343A40",capColor:"#343A40",needleColor:"#343A40",needleTailColor:"#343A40",fontFamily:"Segoe UI",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:.9,fontWeight:"400",titleFontWeight:"400"};break;case"bootstrap5dark":t={backgroundColor:"transparent",titleFontColor:"#DEE2E6",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#212529",fontSize:"10px",tooltipFontSize:"12px",labelColor:"#DEE2E6",lineColor:"#343A40",majorTickColor:"#6C757D",minorTickColor:"#6C757D",pointerColor:"#ADB5BD",capColor:"#ADB5BD",needleColor:"#ADB5BD",needleTailColor:"#ADB5BD",fontFamily:"Segoe UI",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:.9,fontWeight:"400",titleFontWeight:"400"};break;case"fluent":t={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#323130",tooltipFontSize:"13px",labelColor:"#3B3A39",lineColor:"#EDEBE9",majorTickColor:"#C8C6C4",minorTickColor:"#C8C6C4",pointerColor:"#A19F9D",capColor:"#A19F9D",needleColor:"#A19F9D",needleTailColor:"#A19F9D",fontFamily:"Segoe UI",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"Normal",titleFontWeight:"600"};break;case"fluentdark":t={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",tooltipFillColor:"#252423",tooltipFontColor:"#F3F2F1",tooltipFontSize:"13px",labelColor:"#C8C6C4",lineColor:"#292827",majorTickColor:"#484644",minorTickColor:"#484644",pointerColor:"#797775",capColor:"#797775",needleColor:"#797775",needleTailColor:"#797775",fontFamily:"Segoe UI",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"Normal",titleFontWeight:"600"};break;case"material3":t={backgroundColor:"transparent",titleFontColor:"#1C1B1F",tooltipFillColor:"#313033",tooltipFontColor:"#F4EFF4",tooltipFontSize:"14px",labelColor:" #1E192B",lineColor:"#E7E0EC",majorTickColor:"#C4C7C5",minorTickColor:"#C4C7C5",pointerColor:"#49454E",capColor:"#49454E",needleColor:"#49454E",needleTailColor:"#49454E",fontFamily:"Roboto",fontSize:"12px",titleFontSize:"16px",labelFontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"500"};break;case"material3dark":t={backgroundColor:"transparent",titleFontColor:"#E6E1E5",tooltipFillColor:"#E6E1E5",tooltipFontColor:"#313033",tooltipFontSize:"14px",labelColor:"#E6E1E5",lineColor:"#49454F",majorTickColor:"#444746",minorTickColor:"#444746",pointerColor:"#CAC4D0",capColor:"#CAC4D0",needleColor:"#CAC4D0",needleTailColor:"#CAC4D0",fontFamily:"Roboto",fontSize:"12px",titleFontSize:"16px",labelFontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"500"};break;case"fluent2":t={backgroundColor:"transparent",titleFontColor:"#242424",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#242424",tooltipFontSize:"12px",labelColor:"#242424",lineColor:"#EDEBE9",majorTickColor:"#C8C6C4",minorTickColor:"#C8C6C4",pointerColor:"#A19F9D",capColor:"#A19F9D",needleColor:"#A19F9D",needleTailColor:"#A19F9D",fontFamily:"Segoe UI",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"600"};break;case"fluent2dark":t={backgroundColor:"transparent",titleFontColor:"#FFFFFF",tooltipFillColor:"#292929",tooltipFontColor:"#FFFFFF",tooltipFontSize:"12px",labelColor:"#FFFFFF",lineColor:"#292827",majorTickColor:"#484644",minorTickColor:"#484644",pointerColor:"#8A8886",capColor:"#8A8886",needleColor:"#8A8886",needleTailColor:"#8A8886",fontFamily:"Segoe UI",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"600"};break;case"fluent2highcontrast":t={backgroundColor:"transparent",titleFontColor:"#FFFFFF",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFontSize:"12px",labelColor:"#FFFFFF",lineColor:"#292827",majorTickColor:"#484644",minorTickColor:"#484644",pointerColor:"#8A8886",capColor:"#8A8886",needleColor:"#8A8886",needleTailColor:"#8A8886",fontFamily:"Segoe UI",fontSize:"12px",titleFontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,fontWeight:"400",titleFontWeight:"600",tooltipBorderColor:"#FFF",legendBorderColor:"#FFF",legendBorderWidth:1};break;default:t={backgroundColor:"#FFFFFF",titleFontColor:"#424242",tooltipFillColor:"#363F4C",tooltipFontColor:"#ffffff",tooltipFontSize:"13px",tooltipTextOpacity:1,labelColor:"#212121",lineColor:"#E0E0E0",majorTickColor:"#9E9E9E",minorTickColor:"#9E9E9E",pointerColor:"#757575",capColor:"#757575",needleColor:"#757575",needleTailColor:"#757575",fontSize:"12px",titleFontSize:"15px",labelFontFamily:"Segoe UI",fontFamily:"Segoe UI",fontWeight:"Normal",titleFontWeight:"Normal"}}return t}function I(e,t,i){var n=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,a=i.ownerDocument.defaultView.pageYOffset,r=i.ownerDocument.documentElement.clientTop,l=i.ownerDocument.documentElement.clientLeft,s=n.left+o-l,d=n.top+a-r;return new K(e-s,t-d)}function D(e,i,n){var o,a,r=P(e,i),l=r?i.isVue||i.isVue3?r({},i,null,i.element.id+"Template"):r({},null,null,i.element.id+"Template"):[];if(r&&l.length){a=i.createElement("div",{id:i.element.id+"_Measure_Element"}),i.element.appendChild(a);for(var s=i.isVue||i.isVue3?r({},i,null,i.element.id+"Template"):r({},null,null,i.element.id+"Template"),d=s.length;d>0;)a.appendChild(s[0]),d--;n.appendChild(a),o=new $(n.getBoundingClientRect().width,n.getBoundingClientRect().height),t.remove(a)}return o}function B(e,t,i){var n=t,a=o(t,i).width;if(a>e)for(var r=t.length-1;r>=0;--r)if(n=t.substring(0,r)+"...",(a=o(n,i).width)<=e)return n;return n}function z(e,i,n,a,r){var l,s,d=new Q(a.margin.left,a.margin.top+10,a.availableSize.width-(a.margin.left+a.margin.right),a.availableSize.height-(a.margin.top-a.margin.bottom));if("Title"===r){l=a.element.id+"_EJ2_Title_Tooltip",s=document.getElementById(l);var g=o(e,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}).width+5;d.width=g<d.width?g:d.width-10,s||W()}else"LegendText"===r&&(l=a.element.id+"_EJ2_Legend_Tooltip",(s=document.getElementById(l))||W(),i=i+(g=o(e,{fontFamily:"Segoe UI",size:"12px",fontStyle:"Normal",fontWeight:"Regular"}).width+5)>d.width?i-g:i,d.x=i<0?5:i,d.y=n,d.width=g);s?(s.innerText=e,s.style.top=(d.y+15).toString()+"px",s.style.left=d.x.toString()+"px"):((s=t.createElement("div",{id:l,className:"EJ2-CircularGauge-Tooltip"})).innerText=e,s.style.cssText="top:"+(d.y+15).toString()+"px;left:"+d.x.toString()+'px; background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute; border:1px solid rgb(112, 112, 112); padding-left : 3px; padding-right : 2px;padding-bottom: 2px; padding-top : 2px; font-size:12px; text-align: center; font-family: "Segoe UI"; width:'+d.width+"px;",w(a.element.id+"_Secondary_Element").appendChild(s))}function N(e,i,n,o,a){var r=e.target.id,l=document.getElementsByClassName("EJ2-CircularGauge-Tooltip");if(r===o.element.id+"_CircularGaugeTitle"&&e.target.textContent.indexOf("...")>-1)z(o.title,i,n,o,"Title");else if(e.target.textContent.indexOf("...")>-1&&r.indexOf("_gauge_legend_")>-1&&o.legendSettings.visible){for(var s=parseInt(r.split(o.element.id+"_gauge_legend_Axis_")[1].split("_text_")[0],10),d=parseInt(r.split(o.element.id+"_gauge_legend_Axis_")[1].split("_text_")[1],10),g="",u=0,h=o.legendModule.legendCollection;u<h.length;u++){var p=h[u];p.rangeIndex===d&&p.axisIndex===s&&(g=p.originalText)}z(g,i,n,o,"LegendText")}else l.length>0&&(l[0].id.indexOf("Title_Tooltip")>-1||l[0].id.indexOf("Legend_Tooltip")>-1)&&W();a&&!t.isNullOrUndefined(this)&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(W.bind(this),2e3))}function W(){document.getElementsByClassName("EJ2-CircularGauge-Tooltip").length>0&&document.getElementsByClassName("EJ2-CircularGauge-Tooltip")[0].remove()}function G(e,t,i){for(var n=0,o=i.length;e<o;e++)n+=i[e];return n}function U(e,t,i){var n=0,o=0,a=t.filter(function(t){return n=Math.min(t.start,t.end),o=Math.max(t.start,t.end),e>=n&&o>=e});return a.length?a[0].rangeColor:i}function j(e,t,i,n){return-i*Math.cos(e/n*(Math.PI/2))+i+t}function V(e,t,i,n,o,a){var r=g(t,i-=d(t,i)&&!a?1e-4:0);return H(e,p(t,n,e),p(i,n,e),n,p(t,o,e),p(i,o,e),o,r<180?0:1)}function H(e,t,i,n,o,a,r,l){return"M "+t.x+" "+t.y+" A "+n+" "+n+" 0 "+l+" 1 "+i.x+" "+i.y+" L "+a.x+" "+a.y+" A "+r+" "+r+" 0 "+l+",0 "+o.x+" "+o.y+" Z"}var X,Y=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Z=function(){function e(e){this.id=e}return e}(),q=function(e){function t(t,i,n,o,a,r,l,s,d){void 0===s&&(s=""),void 0===d&&(d="");var g=e.call(this,t)||this;return g.opacity=a,g.fill=i,g.stroke=o,g["stroke-width"]=n,g["stroke-dasharray"]=r,g.d=l,g.transform=s,g.style=d,g}return Y(t,e),t}(Z),J=function(e){function t(t,i,n,o,a){var r=e.call(this,t)||this;return r.y=a.y,r.x=a.x,r.height=a.height,r.width=a.width,r.opacity=o,r.fill=i,r.stroke=n.color,r["stroke-width"]=n.width,r["stroke-dasharray"]=n.dashArray,r}return Y(t,e),t}(Z),$=function(){function e(e,t){this.width=e,this.height=t}return e}(),K=function(){function e(e,t){this.x=e,this.y=t}return e}(),Q=function(){function e(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}return e}(),ee=function(e){function t(t,i,n,o,a,r,l){void 0===r&&(r="");var s=e.call(this,t)||this;return s.transform="",s.baseLine="auto",s.x=i,s.y=n,s.anchor=o,s.text=a,s.transform=r,s.baseLine=l,s}return Y(t,e),t}(Z),te=function(){function e(e,t,i){this.text=e,this.value=t,this.size=i}return e}();!function(e){e.axisLabelFont={size:null,fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null},e.legendLabelFont={size:null,fontWeight:null,color:null,fontStyle:"Normal",fontFamily:null}}(X||(X={}));var ie=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ne=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},oe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property("")],i.prototype,"color",void 0),ne([t.Property(1)],i.prototype,"width",void 0),ne([t.Property("")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),ae=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property("16px")],i.prototype,"size",void 0),ne([t.Property("")],i.prototype,"color",void 0),ne([t.Property("segoe UI")],i.prototype,"fontFamily",void 0),ne([t.Property("Normal")],i.prototype,"fontWeight",void 0),ne([t.Property("Normal")],i.prototype,"fontStyle",void 0),ne([t.Property(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),re=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property(null)],i.prototype,"fill",void 0),ne([t.Complex({size:null,fontFamily:null,opacity:null,fontWeight:null},ae)],i.prototype,"textStyle",void 0),ne([t.Property(null)],i.prototype,"format",void 0),ne([t.Property(null)],i.prototype,"template",void 0),ne([t.Property(!0)],i.prototype,"enableAnimation",void 0),ne([t.Complex({color:null},oe)],i.prototype,"border",void 0),ne([t.Property(!1)],i.prototype,"showAtMousePosition",void 0),i}(t.ChildProperty),le=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property(null)],i.prototype,"fill",void 0),ne([t.Complex({size:"13px",fontFamily:null,opacity:null},ae)],i.prototype,"textStyle",void 0),ne([t.Property(null)],i.prototype,"format",void 0),ne([t.Property(null)],i.prototype,"template",void 0),ne([t.Property(!0)],i.prototype,"enableAnimation",void 0),ne([t.Complex({color:null},oe)],i.prototype,"border",void 0),i}(t.ChildProperty),se=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property(10)],i.prototype,"left",void 0),ne([t.Property(10)],i.prototype,"right",void 0),ne([t.Property(10)],i.prototype,"top",void 0),ne([t.Property(10)],i.prototype,"bottom",void 0),i}(t.ChildProperty),de=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property(!1)],i.prototype,"enable",void 0),ne([t.Property(null)],i.prototype,"fill",void 0),ne([t.Complex({size:null,fontFamily:null,opacity:null,fontWeight:null},ae)],i.prototype,"textStyle",void 0),ne([t.Complex({},re)],i.prototype,"rangeSettings",void 0),ne([t.Complex({},le)],i.prototype,"annotationSettings",void 0),ne([t.Property(null)],i.prototype,"format",void 0),ne([t.Property(null)],i.prototype,"template",void 0),ne([t.Property(!0)],i.prototype,"enableAnimation",void 0),ne([t.Complex({color:null},oe)],i.prototype,"border",void 0),ne([t.Property(!1)],i.prototype,"showAtMousePosition",void 0),ne([t.Property("Pointer")],i.prototype,"type",void 0),i}(t.ChildProperty),ge=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property(0)],i.prototype,"x",void 0),ne([t.Property(0)],i.prototype,"y",void 0),i}(t.ChildProperty),ue=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ie(i,e),ne([t.Property(!1)],i.prototype,"visible",void 0),ne([t.Property(!0)],i.prototype,"toggleVisibility",void 0),ne([t.Property("Center")],i.prototype,"alignment",void 0),ne([t.Complex({},oe)],i.prototype,"border",void 0),ne([t.Complex({},oe)],i.prototype,"shapeBorder",void 0),ne([t.Property(8)],i.prototype,"padding",void 0),ne([t.Property(1)],i.prototype,"opacity",void 0),ne([t.Property("Auto")],i.prototype,"position",void 0),ne([t.Property("Circle")],i.prototype,"shape",void 0),ne([t.Property(null)],i.prototype,"height",void 0),ne([t.Property(null)],i.prototype,"width",void 0),ne([t.Complex(X.legendLabelFont,ae)],i.prototype,"textStyle",void 0),ne([t.Property(10)],i.prototype,"shapeHeight",void 0),ne([t.Property(10)],i.prototype,"shapeWidth",void 0),ne([t.Property(5)],i.prototype,"shapePadding",void 0),ne([t.Complex({x:0,y:0},ge)],i.prototype,"location",void 0),ne([t.Property("transparent")],i.prototype,"background",void 0),ne([t.Complex({left:0,right:0,top:0,bottom:0},se)],i.prototype,"margin",void 0),i}(t.ChildProperty),he=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),pe=function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},ce=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Property(2)],i.prototype,"width",void 0),pe([t.Property("")],i.prototype,"dashArray",void 0),pe([t.Property(null)],i.prototype,"color",void 0),i}(t.ChildProperty),me=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Complex(X.axisLabelFont,ae)],i.prototype,"font",void 0),pe([t.Property("")],i.prototype,"format",void 0),pe([t.Property("Inside")],i.prototype,"position",void 0),pe([t.Property("None")],i.prototype,"hiddenLabel",void 0),pe([t.Property(!1)],i.prototype,"autoAngle",void 0),pe([t.Property(!1)],i.prototype,"useRangeColor",void 0),pe([t.Property(0)],i.prototype,"offset",void 0),pe([t.Property(!0)],i.prototype,"shouldMaintainPadding",void 0),i}(t.ChildProperty),ye=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.isLinearCircularGradient=!1,t}return he(i,e),pe([t.Property(0)],i.prototype,"start",void 0),pe([t.Property(0)],i.prototype,"end",void 0),pe([t.Property(null)],i.prototype,"radius",void 0),pe([t.Property(10)],i.prototype,"startWidth",void 0),pe([t.Property(10)],i.prototype,"endWidth",void 0),pe([t.Property(null)],i.prototype,"color",void 0),pe([t.Property(0)],i.prototype,"roundedCornerRadius",void 0),pe([t.Property(1)],i.prototype,"opacity",void 0),pe([t.Property("")],i.prototype,"legendText",void 0),pe([t.Property("Auto")],i.prototype,"position",void 0),pe([t.Property(0)],i.prototype,"offset",void 0),pe([t.Property(null)],i.prototype,"linearGradient",void 0),pe([t.Property(null)],i.prototype,"radialGradient",void 0),i}(t.ChildProperty),fe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Property(2)],i.prototype,"width",void 0),pe([t.Property(null)],i.prototype,"height",void 0),pe([t.Property(null)],i.prototype,"interval",void 0),pe([t.Property(0)],i.prototype,"offset",void 0),pe([t.Property(null)],i.prototype,"color",void 0),pe([t.Property("Inside")],i.prototype,"position",void 0),pe([t.Property(!1)],i.prototype,"useRangeColor",void 0),pe([t.Property("0")],i.prototype,"dashArray",void 0),i}(t.ChildProperty),ve=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Property(null)],i.prototype,"color",void 0),pe([t.Property(null)],i.prototype,"linearGradient",void 0),pe([t.Property(null)],i.prototype,"radialGradient",void 0),pe([t.Complex({color:null,width:8},oe)],i.prototype,"border",void 0),pe([t.Property(8)],i.prototype,"radius",void 0),i}(t.ChildProperty),xe=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Property(null)],i.prototype,"color",void 0),pe([t.Complex({color:null,width:0},oe)],i.prototype,"border",void 0),pe([t.Property("0%")],i.prototype,"length",void 0),pe([t.Property(null)],i.prototype,"linearGradient",void 0),pe([t.Property(null)],i.prototype,"radialGradient",void 0),i}(t.ChildProperty),be=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Property(!0)],i.prototype,"enable",void 0),pe([t.Property(1e3)],i.prototype,"duration",void 0),i}(t.ChildProperty),Ae=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return he(i,e),pe([t.Property(null)],i.prototype,"content",void 0),pe([t.Property(90)],i.prototype,"angle",void 0),pe([t.Property("50%")],i.prototype,"radius",void 0),pe([t.Property("-1")],i.prototype,"zIndex",void 0),pe([t.Property(!1)],i.prototype,"autoAngle",void 0),pe([t.Complex({size:"12px",color:"#686868"},ae)],i.prototype,"textStyle",void 0),pe([t.Property(null)],i.prototype,"description",void 0),i}(t.ChildProperty),Ce=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.isPointerAnimation=!0,t}return he(i,e),pe([t.Property(null)],i.prototype,"value",void 0),pe([t.Property("Needle")],i.prototype,"type",void 0),pe([t.Property("Auto")],i.prototype,"position",void 0),pe([t.Property(0)],i.prototype,"roundedCornerRadius",void 0),pe([t.Property(null)],i.prototype,"imageUrl",void 0),pe([t.Property(null)],i.prototype,"radius",void 0),pe([t.Property(20)],i.prototype,"pointerWidth",void 0),pe([t.Complex({},ve)],i.prototype,"cap",void 0),pe([t.Complex({},ae)],i.prototype,"textStyle",void 0),pe([t.Complex({},xe)],i.prototype,"needleTail",void 0),pe([t.Property(null)],i.prototype,"color",void 0),pe([t.Complex({color:"#DDDDDD",width:0},oe)],i.prototype,"border",void 0),pe([t.Complex(null,be)],i.prototype,"animation",void 0),pe([t.Property("Circle")],i.prototype,"markerShape",void 0),pe([t.Property(5)],i.prototype,"markerHeight",void 0),pe([t.Property("")],i.prototype,"text",void 0),pe([t.Property(null)],i.prototype,"description",void 0),pe([t.Property(5)],i.prototype,"markerWidth",void 0),pe([t.Property(0)],i.prototype,"offset",void 0),pe([t.Property(null)],i.prototype,"needleStartWidth",void 0),pe([t.Property(null)],i.prototype,"needleEndWidth",void 0),pe([t.Property(!1)],i.prototype,"enableDrag",void 0),pe([t.Property(null)],i.prototype,"linearGradient",void 0),pe([t.Property(null)],i.prototype,"radialGradient",void 0),i}(t.ChildProperty),Pe=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.visibleLabels=[],t}return he(i,e),pe([t.Property(null)],i.prototype,"minimum",void 0),pe([t.Property(null)],i.prototype,"maximum",void 0),pe([t.Property(!1)],i.prototype,"showLastLabel",void 0),pe([t.Property(!1)],i.prototype,"hideIntersectingLabel",void 0),pe([t.Property(null)],i.prototype,"roundingPlaces",void 0),pe([t.Property(null)],i.prototype,"radius",void 0),pe([t.Complex({},ce)],i.prototype,"lineStyle",void 0),pe([t.Collection([{}],ye)],i.prototype,"ranges",void 0),pe([t.Collection([{}],Ce)],i.prototype,"pointers",void 0),pe([t.Collection([{}],Ae)],i.prototype,"annotations",void 0),pe([t.Complex({width:2,height:10},fe)],i.prototype,"majorTicks",void 0),pe([t.Complex({width:2,height:5},fe)],i.prototype,"minorTicks",void 0),pe([t.Property(200)],i.prototype,"startAngle",void 0),pe([t.Property(160)],i.prototype,"endAngle",void 0),pe([t.Property("ClockWise")],i.prototype,"direction",void 0),pe([t.Property(null)],i.prototype,"background",void 0),pe([t.Property(null)],i.prototype,"rangeGap",void 0),pe([t.Property(!1)],i.prototype,"startAndEndRangeGap",void 0),pe([t.Complex({},me)],i.prototype,"labelStyle",void 0),i}(t.ChildProperty),Se=function(){function e(e){}return e.prototype.renderAnnotation=function(e,i,n){var o=this,a=n.availableSize.width,r=t.createElement("div",{id:n.element.id+"_Annotations_"+i});r.style.opacity=n.allowLoadingAnimation?"0":"1";var l=w(n.element.id+"_Secondary_Element");t.isNullOrUndefined(document.getElementById(n.element.id+"_Secondary_Element"))||(document.getElementById(n.element.id+"_Secondary_Element").style.width=a+"px"),e.annotations.map(function(e,t){null!==e.content&&o.createTemplate(r,t,i,n)}),l&&r.childElementCount&&l.appendChild(r),n.renderReactTemplates()},e.prototype.annotationAnimation=function(e){for(var i=0;i<e.axes.length;i++){var n=document.getElementById(e.element.id+"_Annotations_"+i);t.isNullOrUndefined(n)||"0"===n.style.opacity&&this.annotationAnimate(n,e,i)}},e.prototype.annotationAnimate=function(e,i,n){var o=0;new t.Animation({}).animate(e,{duration:i.loadingAnimationDuration[n],progress:function(t){t.timeStamp>t.delay&&(o=(t.timeStamp-t.delay)/t.duration,e.style.opacity=1*o)},end:function(){e.style.opacity=1,i.isOverAllAnimationComplete=!0}})},e.prototype.createTemplate=function(e,i,n,o){var a=this,l=o.axes[n],s=l.annotations[i],d=t.createElement("div",{id:o.element.id+"_Axis_"+n+"_Annotation_"+i});d.style.cssText="position: absolute; z-index:"+s.zIndex+";transform:"+(s.autoAngle?"rotate("+(s.angle-90)+"deg)":"rotate(0deg)")+";";var g={cancel:!1,name:"annotationRender",content:s.content,axis:l,annotation:s,textStyle:s.textStyle};o.trigger("annotationRender",g,function(u){var h,p;if(!g.cancel){if((h=P(g.content,o))&&h(l,o,g.content,o.element.id+"_Axis"+n+"_ContentTemplate"+i).length)for(var c=(p=Array.prototype.slice.call(h(l,o,g.content,o.element.id+"_Axis"+n+"_ContentTemplate"+i))).length,m=0;m<c;m++)d.appendChild(p[m]);else{var y=t.createElement("div",{innerHTML:t.isNullOrUndefined(g.content)?null:g.content.toString(),id:"StringTemplate"});y.style.cssText=r(g.textStyle),d.appendChild(y)}a.updateLocation(d,l,s,o),e.appendChild(d)}})},e.prototype.updateLocation=function(e,t,i,n){var o=p(i.angle-90,F(i.radius,t.currentRadius),n.midPoint),a=this.measureElementRect(e);e.style.left=o.x-a.width/2+"px",e.style.top=o.y-a.height/2+"px",e.setAttribute("aria-label",i.description||"Annotation"),e.setAttribute("role","region")},e.prototype.getModuleName=function(){return"Annotations"},e.prototype.destroy=function(){},e.prototype.measureElementRect=function(e){document.body.appendChild(e);var t=e.getBoundingClientRect();return S(e.id),t},e}(),we=function(){function e(e){this.gauge=e,this.tooltipId=this.gauge.element.id+"_CircularGauge_Tooltip",this.tooltip=e.tooltip,this.addEventListener()}return e.prototype.renderTooltip=function(e){var t=this;this.gaugeId=this.gauge.element.getAttribute("id");var i,n,o,a,r,l=!1,s=!1;if(-1!==e.type.indexOf("touch")?(o=(a=e).target,i=a.changedTouches[0].pageX,n=a.changedTouches[0].pageY):(o=e.target,i=e.pageX,n=e.pageY),this.tooltip.type.indexOf("Pointer")>-1&&o.id.indexOf("_Pointer_")>=0&&o.id.indexOf(this.gaugeId)>=0){null!==this.pointerEle&&(l=this.pointerEle===o),s=!0;var d=this.gauge.svgObject.getBoundingClientRect(),g=this.gauge.element.getBoundingClientRect(),h=document.getElementById(this.gauge.element.id+"_AxesCollection").getBoundingClientRect(),c=new Q(Math.abs(g.left-d.left),Math.abs(g.top-d.top),d.width,d.height),m=R(o.id,this.gauge);this.currentAxis=this.gauge.axes[m.axisIndex],this.currentPointer=this.currentAxis.pointers[m.pointerIndex];var y=u(this.currentPointer.currentValue,this.currentAxis.visibleRange.max,this.currentAxis.visibleRange.min,this.currentAxis.startAngle,this.currentAxis.endAngle,"ClockWise"===this.currentAxis.direction)%360,f=this.gauge.tooltip.format||this.currentAxis.labelStyle.format,v=f&&null!==f.match("{value}"),x=this.gauge.intl.getNumberFormat({format:_(f),useGrouping:this.gauge.useGroupingSeparator});if(this.tooltipElement(),0!==this.tooltipEle.childElementCount&&!this.gauge.enablePointerDrag&&!this.gauge.tooltip.showAtMousePosition)return null;var b=this.roundedValue(this.currentPointer.currentValue),A=v?f.replace(new RegExp("{value}","g"),x(b)):x(b);(r=p(y,this.currentAxis.currentRadius,this.gauge.midPoint)).x=this.tooltip.template&&(y>=150&&y<=250||y>=330&&y<=360||y>=0&&y<=45)?r.x+10:r.x;var C={name:"tooltipRender",cancel:!1,content:A,location:r,axis:this.currentAxis,tooltip:this.tooltip,pointer:this.currentPointer,event:e,gauge:this.gauge,appendInBodyTag:!1,type:"Pointer"},P=function(e){var o=e.tooltip.template;if(null!==o&&1===o.length&&"function"!=typeof o&&(o=o[o[0]]),e.tooltip.showAtMousePosition)e.location=I(i,n,t.gauge.svgObject),t.tooltipRect=c;else if(o){var a=D(o,t.gauge,t.tooltipEle);t.tooltipRect=Math.abs(h.left-d.left)>a.width?t.findPosition(c,y,e.location,!0):c}else t.findPosition(c,y,e.location,!1);if(!e.cancel&&!l){var r={color:e.tooltip.textStyle.color||t.gauge.themeStyle.tooltipFontColor,opacity:e.tooltip.textStyle.opacity||t.gauge.themeStyle.tooltipTextOpacity,fontFamily:e.tooltip.textStyle.fontFamily||t.gauge.themeStyle.fontFamily,fontWeight:e.tooltip.textStyle.fontWeight||t.gauge.themeStyle.fontWeight,fontStyle:e.tooltip.textStyle.fontStyle,size:e.tooltip.textStyle.size||t.gauge.themeStyle.tooltipFontSize};t.svgTooltip=t.svgTooltipCreate(t.svgTooltip,e,o,t.arrowInverted,t.tooltipRect,t.gauge,e.tooltip.fill,r,e.tooltip.border),t.svgTooltip.opacity=t.gauge.themeStyle.tooltipFillOpacity||t.svgTooltip.opacity,t.svgTooltip.appendTo(t.tooltipEle),!o||"LeftTop"!==t.tooltipPosition&&"LeftBottom"!==t.tooltipPosition||(t.tooltipEle.style.left=parseFloat(t.tooltipEle.style.left)-t.tooltipEle.getBoundingClientRect().width-20+"px"),o&&Math.abs(n-t.tooltipEle.getBoundingClientRect().top)<=0&&(t.tooltipEle.style.top=parseFloat(t.tooltipEle.style.top)+20+"px")}};this.gauge.trigger("tooltipRender",C,P),this.gauge.renderReactTemplates()}else if(this.tooltip.type.indexOf("Range")>-1&&o.id.indexOf("_Range_")>=0&&!this.gauge.isDrag&&o.id.indexOf(this.gaugeId)>=0){s=!0;var S=this.gauge.svgObject.getBoundingClientRect(),w=this.gauge.element.getBoundingClientRect(),T=document.getElementById(this.gauge.element.id+"_AxesCollection").getBoundingClientRect(),E=new Q(Math.abs(w.left-S.left),Math.abs(w.top-S.top),S.width,S.height),M=R(o.id,this.gauge);this.currentAxis=this.gauge.axes[M.axisIndex],this.currentRange=this.currentAxis.ranges[M.pointerIndex];var k=u(this.currentRange.end-Math.abs((this.currentRange.end-this.currentRange.start)/2),this.currentAxis.visibleRange.max,this.currentAxis.visibleRange.min,this.currentAxis.startAngle,this.currentAxis.endAngle,"ClockWise"===this.currentAxis.direction)%360,O=this.gauge.tooltip.rangeSettings.format||this.currentAxis.labelStyle.format,v=O&&(null!==O.match("{end}")||null!==O.match("{start}")),L=this.gauge.intl.getNumberFormat({format:_(O),useGrouping:this.gauge.useGroupingSeparator});this.tooltipElement();var B=this.roundedValue(this.currentRange.start),z=this.roundedValue(this.currentRange.end),W=this.currentRange.start.toString(),G=this.currentRange.end.toString(),U=v?O.replace(/{start}/g,W).replace(/{end}/g,G):this.gauge.enableRtl?"Start:"+L(B)+" <br>End:"+L(z)+" ":"Start : "+L(B)+"<br>End : "+L(z);(r=p(k,this.currentRange.currentRadius,this.gauge.midPoint)).x=this.tooltip.rangeSettings.template&&(k>=150&&k<=250||k>=330&&k<=360||k>=0&&k<=45)?r.x+10:r.x;var j={name:"tooltipRender",cancel:!1,content:U,location:r,axis:this.currentAxis,tooltip:this.tooltip,range:this.currentRange,event:e,gauge:this.gauge,appendInBodyTag:!1,type:"Range"},V={color:this.gauge.tooltip.rangeSettings.textStyle.color,opacity:this.gauge.tooltip.rangeSettings.textStyle.opacity,fontFamily:this.gauge.tooltip.rangeSettings.textStyle.fontFamily,fontStyle:this.gauge.tooltip.rangeSettings.textStyle.fontStyle,fontWeight:this.gauge.tooltip.rangeSettings.textStyle.fontWeight,size:this.gauge.tooltip.rangeSettings.textStyle.size},H=function(e){var o=e.tooltip.rangeSettings.template;if(null!==o&&1===o.length&&"function"!=typeof o&&(o=o[o[0]]),"function"!=typeof o&&o&&(o=(o=o.replace(/[$]{start}/g,W)).replace(/[$]{end}/g,G)),t.tooltip.rangeSettings.showAtMousePosition)e.location=I(i,n,t.gauge.svgObject),t.tooltipRect=E;else if(o){var a=D(o,t.gauge,t.tooltipEle);t.tooltipRect=Math.abs(T.left-S.left)>a.width?t.findPosition(E,k,e.location,!0):E}else t.findPosition(E,k,e.location,!1);e.cancel||(V.color=e.tooltip.rangeSettings.textStyle.color||t.gauge.themeStyle.tooltipFontColor,V.fontFamily=e.tooltip.rangeSettings.textStyle.fontFamily||t.gauge.themeStyle.fontFamily,V.fontWeight=e.tooltip.rangeSettings.textStyle.fontWeight||t.gauge.themeStyle.fontWeight,V.opacity=e.tooltip.rangeSettings.textStyle.opacity||t.gauge.themeStyle.tooltipTextOpacity,V.size=e.tooltip.rangeSettings.textStyle.size||t.gauge.themeStyle.tooltipFontSize,t.svgTooltip=t.svgTooltipCreate(t.svgTooltip,e,o,t.arrowInverted,t.tooltipRect,t.gauge,e.tooltip.rangeSettings.fill,V,e.tooltip.rangeSettings.border),t.svgTooltip.opacity=t.gauge.themeStyle.tooltipFillOpacity||t.svgTooltip.opacity,t.svgTooltip.appendTo(t.tooltipEle),!o||"LeftTop"!==t.tooltipPosition&&"LeftBottom"!==t.tooltipPosition||(t.tooltipEle.style.left=parseFloat(t.tooltipEle.style.left)-t.tooltipEle.getBoundingClientRect().width-20+"px"),o&&Math.abs(n-t.tooltipEle.getBoundingClientRect().top)<=0&&(t.tooltipEle.style.top=parseFloat(t.tooltipEle.style.top)+20+"px"))};this.gauge.trigger("tooltipRender",j,H),this.gauge.renderReactTemplates()}else if(this.tooltip.type.indexOf("Annotation")>-1&&this.checkParentAnnotationId(o)&&!this.gauge.isDrag&&this.annotationTargetElement.id.indexOf(this.gaugeId)>=0){s=!0;var X=this.gauge.svgObject.getBoundingClientRect(),Y=this.gauge.element.getBoundingClientRect(),Z=new Q(Math.abs(Y.left-X.left),Math.abs(Y.top-X.top),X.width,X.height),q=R(this.annotationTargetElement.id,this.gauge);this.currentAxis=this.gauge.axes[q.axisIndex],this.currentAnnotation=this.currentAxis.annotations[q.pointerIndex];var J=this.currentAnnotation.angle-90;this.tooltipElement(),document.getElementById(this.gauge.element.id+"_Secondary_Element").appendChild(this.tooltipEle);var $=null!==this.gauge.tooltip.annotationSettings.format?this.gauge.tooltip.annotationSettings.format:"";(r=p(J,F(this.currentAnnotation.radius,this.currentAxis.currentRadius),this.gauge.midPoint)).x=this.tooltip.annotationSettings.template&&(J>=150&&J<=250||J>=330&&J<=360||J>=0&&J<=45)?r.x+10:r.x;var K={name:"tooltipRender",cancel:!1,content:$,location:r,axis:this.currentAxis,tooltip:this.tooltip,annotation:this.currentAnnotation,event:e,gauge:this.gauge,appendInBodyTag:!1,type:"Annotation"},ee=function(e){var i=e.tooltip.annotationSettings.template;null!==i&&1===i.length&&"function"!=typeof i&&(i=i[i[0]]);var o=t.annotationTargetElement.getBoundingClientRect();if(t.tooltipPosition="RightTop",t.arrowInverted=!0,e.location.x=e.location.x+o.width/2,t.tooltipRect=new Q(Z.x,Z.y,Z.width,Z.height),!e.cancel&&(null!==t.gauge.tooltip.annotationSettings.format||null!==t.gauge.tooltip.annotationSettings.template)){var a={color:e.tooltip.textStyle.color||t.gauge.themeStyle.tooltipFontColor,fontFamily:e.tooltip.textStyle.fontFamily||t.gauge.themeStyle.fontFamily,fontWeight:e.tooltip.textStyle.fontWeight||t.gauge.themeStyle.fontWeight,opacity:e.tooltip.textStyle.opacity||t.gauge.themeStyle.tooltipTextOpacity,fontStyle:e.tooltip.textStyle.fontStyle,size:e.tooltip.textStyle.size||t.gauge.themeStyle.tooltipFontSize};t.svgTooltip=t.svgTooltipCreate(t.svgTooltip,e,i,t.arrowInverted,t.tooltipRect,t.gauge,e.tooltip.annotationSettings.fill,a,e.tooltip.annotationSettings.border),t.svgTooltip.opacity=t.gauge.themeStyle.tooltipFillOpacity||t.svgTooltip.opacity,t.svgTooltip.appendTo(t.tooltipEle),i&&Math.abs(n-t.tooltipEle.getBoundingClientRect().top)<=0&&(t.tooltipEle.style.top=parseFloat(t.tooltipEle.style.top)+20+"px")}};this.gauge.trigger("tooltipRender",K,ee),this.gauge.renderReactTemplates()}else(o.id===this.gauge.element.id+"_CircularGaugeTitle"||o.id.indexOf("_gauge_legend_")>-1)&&e.target.textContent.indexOf("...")>-1?N(e,i,n,this.gauge,!1):this.removeTooltip()&&(this.gauge.isVue||this.gauge.isVue3?this.gauge.clearTemplate([this.tooltipEle.children[0].id],[0]):this.gauge.isAngular||this.gauge.clearTemplate());var te=document.getElementById(this.gaugeId).getBoundingClientRect(),ie=s?this.tooltipEle.getBoundingClientRect():null;if(s&&this.tooltipEle.offsetLeft<0&&ie.left-te.left<0){var ne=this.tooltipEle.style.left.split("px")[0];this.tooltipEle.style.left=parseInt(ne,10)+(te.left-ie.left)+"px"}s&&ie.top<0&&(this.tooltipEle.style.top="0px")},e.prototype.svgTooltipCreate=function(e,n,o,a,r,l,s,d,g){var