UNPKG

@syncfusion/ej2-lineargauge

Version:
12 lines 116 kB
/*!
*  filename: ej2-lineargauge.umd.min.js
*  version : 30.1.37
*  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. 
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base"),require("@syncfusion/ej2-svg-base"),require("@syncfusion/ej2-pdf-export")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base","@syncfusion/ej2-svg-base","@syncfusion/ej2-pdf-export"],e):e((t=t||self).ej={},t.ej2Base,t.ej2SvgBase,t.ej2PdfExport)}(this,function(t,T,d,_){"use strict";D=function(t,e){return(D=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};var D,N,e=function(t,e){function i(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},i=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;0<=l;l--)(n=t[l])&&(a=(r<3?n(a):3<r?n(e,i,a):n(e,i))||a);return 3<r&&a&&Object.defineProperty(e,i,a),a},M=(N=T.ChildProperty,e(o,N),i([T.Property("16px")],o.prototype,"size",void 0),i([T.Property("")],o.prototype,"color",void 0),i([T.Property("Segoe UI")],o.prototype,"fontFamily",void 0),i([T.Property("Regular")],o.prototype,"fontWeight",void 0),i([T.Property("Normal")],o.prototype,"fontStyle",void 0),i([T.Property(1)],o.prototype,"opacity",void 0),o);function o(){return null!==N&&N.apply(this,arguments)||this}V=T.ChildProperty,e(U,V),i([T.Property("16px")],U.prototype,"size",void 0),i([T.Property("")],U.prototype,"fontFamily",void 0),i([T.Property("normal")],U.prototype,"fontWeight",void 0),i([T.Property("normal")],U.prototype,"fontStyle",void 0);var V,j=U;function U(){return null!==V&&V.apply(this,arguments)||this}G=T.ChildProperty,e(H,G),i([T.Property(10)],H.prototype,"left",void 0),i([T.Property(10)],H.prototype,"right",void 0),i([T.Property(10)],H.prototype,"top",void 0),i([T.Property(10)],H.prototype,"bottom",void 0);var G,W=H;function H(){return null!==G&&G.apply(this,arguments)||this}X=T.ChildProperty,e(Y,X),i([T.Property(null)],Y.prototype,"color",void 0),i([T.Property(0)],Y.prototype,"width",void 0),i([T.Property("")],Y.prototype,"dashArray",void 0);var X,n=Y;function Y(){return null!==X&&X.apply(this,arguments)||this}J=T.ChildProperty,e(r,J),i([T.Property("")],r.prototype,"content",void 0),i([T.Property(0)],r.prototype,"x",void 0),i([T.Property(0)],r.prototype,"y",void 0),i([T.Property("None")],r.prototype,"verticalAlignment",void 0),i([T.Property("None")],r.prototype,"horizontalAlignment",void 0),i([T.Property("-1")],r.prototype,"zIndex",void 0),i([T.Complex({size:"12px",color:null},M)],r.prototype,"font",void 0),i([T.Property(null)],r.prototype,"axisIndex",void 0),i([T.Property(null)],r.prototype,"axisValue",void 0);var J,q=r;function r(){return null!==J&&J.apply(this,arguments)||this}Z=T.ChildProperty,e(a,Z),i([T.Property("Normal")],a.prototype,"type",void 0),i([T.Property(0)],a.prototype,"height",void 0),i([T.Property(0)],a.prototype,"width",void 0),i([T.Property(10)],a.prototype,"roundedCornerRadius",void 0),i([T.Property("transparent")],a.prototype,"backgroundColor",void 0),i([T.Complex({width:1,color:null},n)],a.prototype,"border",void 0),i([T.Property(0)],a.prototype,"offset",void 0);var Z,Q=a;function a(){return null!==Z&&Z.apply(this,arguments)||this}K=T.ChildProperty,e(l,K),i([T.Property(null)],l.prototype,"fill",void 0),i([T.Complex({size:null,opacity:null,fontFamily:null,fontWeight:null},M)],l.prototype,"textStyle",void 0),i([T.Property(null)],l.prototype,"format",void 0),i([T.Property(null)],l.prototype,"template",void 0),i([T.Property(!0)],l.prototype,"enableAnimation",void 0),i([T.Complex({color:null,width:null},n)],l.prototype,"border",void 0),i([T.Property("End")],l.prototype,"position",void 0),i([T.Property(!1)],l.prototype,"showAtMousePosition",void 0);var K,$=l;function l(){return null!==K&&K.apply(this,arguments)||this}tt=T.ChildProperty,e(s,tt),i([T.Property(!1)],s.prototype,"enable",void 0),i([T.Property("")],s.prototype,"fill",void 0),i([T.Complex({color:"",size:null,opacity:null,fontFamily:null,fontWeight:null},M)],s.prototype,"textStyle",void 0),i([T.Property(null)],s.prototype,"format",void 0),i([T.Property(!1)],s.prototype,"showAtMousePosition",void 0),i([T.Complex({},$)],s.prototype,"rangeSettings",void 0),i([T.Property("End")],s.prototype,"position",void 0),i([T.Property(null)],s.prototype,"template",void 0),i([T.Property(!0)],s.prototype,"enableAnimation",void 0),i([T.Complex({color:null,width:null},n)],s.prototype,"border",void 0),i([T.Property("Pointer")],s.prototype,"type",void 0);var tt,e=s;function s(){return null!==tt&&tt.apply(this,arguments)||this}et=function(t,e){return(et=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};var et,it,i=function(t,e){function i(){this.constructor=t}et(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},h=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;0<=l;l--)(n=t[l])&&(a=(r<3?n(a):3<r?n(e,i,a):n(e,i))||a);return 3<r&&a&&Object.defineProperty(e,i,a),a},ot=(it=T.ChildProperty,i(p,it),h([T.Property("")],p.prototype,"dashArray",void 0),h([T.Property(null)],p.prototype,"height",void 0),h([T.Property(2)],p.prototype,"width",void 0),h([T.Property(null)],p.prototype,"color",void 0),h([T.Property(0)],p.prototype,"offset",void 0),p);function p(){return null!==it&&it.apply(this,arguments)||this}nt=T.ChildProperty,i(u,nt),h([T.Complex({size:"12px",color:null,fontStyle:null,fontWeight:null,fontFamily:null},M)],u.prototype,"font",void 0),h([T.Property(!1)],u.prototype,"useRangeColor",void 0),h([T.Property("")],u.prototype,"format",void 0),h([T.Property(0)],u.prototype,"offset",void 0),h([T.Property("Auto")],u.prototype,"position",void 0);var nt,rt=u;function u(){return null!==nt&&nt.apply(this,arguments)||this}at=T.ChildProperty,i(g,at),h([T.Property(0)],g.prototype,"start",void 0),h([T.Property(0)],g.prototype,"end",void 0),h([T.Property(null)],g.prototype,"linearGradient",void 0),h([T.Property(null)],g.prototype,"radialGradient",void 0),h([T.Property("Outside")],g.prototype,"position",void 0),h([T.Property("")],g.prototype,"color",void 0),h([T.Property(10)],g.prototype,"startWidth",void 0),h([T.Property(10)],g.prototype,"endWidth",void 0),h([T.Property(0)],g.prototype,"offset",void 0),h([T.Complex({color:"#000000",width:0},n)],g.prototype,"border",void 0);var at,lt=g;function g(){return null!==at&&at.apply(this,arguments)||this}st=T.ChildProperty,i(c,st),h([T.Property(20)],c.prototype,"height",void 0),h([T.Property(2)],c.prototype,"width",void 0),h([T.Property(null)],c.prototype,"interval",void 0),h([T.Property(null)],c.prototype,"color",void 0),h([T.Property(null)],c.prototype,"offset",void 0),h([T.Property("Auto")],c.prototype,"position",void 0);var st,ht=c;function c(){return null!==st&&st.apply(this,arguments)||this}dt=T.ChildProperty,i(m,dt),h([T.Property("Marker")],m.prototype,"type",void 0),h([T.Property(null)],m.prototype,"linearGradient",void 0),h([T.Property(null)],m.prototype,"radialGradient",void 0),h([T.Property(null)],m.prototype,"value",void 0),h([T.Property("InvertedTriangle")],m.prototype,"markerType",void 0),h([T.Property(null)],m.prototype,"imageUrl",void 0),h([T.Complex({color:"#808080"},n)],m.prototype,"border",void 0),h([T.Property(10)],m.prototype,"roundedCornerRadius",void 0),h([T.Property("Far")],m.prototype,"placement",void 0),h([T.Property(20)],m.prototype,"height",void 0),h([T.Property(20)],m.prototype,"width",void 0),h([T.Property(null)],m.prototype,"color",void 0),h([T.Property(1)],m.prototype,"opacity",void 0),h([T.Property(0)],m.prototype,"animationDuration",void 0),h([T.Property(!1)],m.prototype,"enableDrag",void 0),h([T.Property(0)],m.prototype,"offset",void 0),h([T.Property("Auto")],m.prototype,"position",void 0),h([T.Property(null)],m.prototype,"description",void 0),h([T.Property("")],m.prototype,"text",void 0),h([T.Complex({size:"16px",fontStyle:"normal",fontWeight:"normal",fontFamily:null},j)],m.prototype,"textStyle",void 0);var dt,pt=m;function m(){var t=null!==dt&&dt.apply(this,arguments)||this;return t.animationComplete=!0,t.isPointerAnimation=!0,t.currentValue=null,t}ut=T.ChildProperty,i(y,ut),h([T.Property(0)],y.prototype,"minimum",void 0),h([T.Property(100)],y.prototype,"maximum",void 0),h([T.Property(!1)],y.prototype,"isInversed",void 0),h([T.Property(!1)],y.prototype,"showLastLabel",void 0),h([T.Property(!1)],y.prototype,"opposedPosition",void 0),h([T.Complex({},ot)],y.prototype,"line",void 0),h([T.Collection([{}],lt)],y.prototype,"ranges",void 0),h([T.Collection([{}],pt)],y.prototype,"pointers",void 0),h([T.Complex({width:2,height:20},ht)],y.prototype,"majorTicks",void 0),h([T.Complex({width:1,height:10},ht)],y.prototype,"minorTicks",void 0),h([T.Complex({},rt)],y.prototype,"labelStyle",void 0);var ut,i=y;function y(){var t=null!==ut&&ut.apply(this,arguments)||this;return t.visibleLabels=[],t}var gt,ct="animationComplete",mt="axisLabelRender",yt="tooltipRender",ft="annotationRender",bt="gaugeMouseMove",vt="gaugeMouseLeave",xt="gaugeMouseDown",wt="gaugeMouseUp",Ct="dragStart",Ft="dragMove",St="dragEnd",Pt="resized",h=(gt=function(t,e){return(gt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)},function(t,e){function i(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});function At(t,e){return-1!==t.indexOf("%")?e/100*parseInt(t,10):parseInt(t,10)}function Tt(t,e){return T.isNullOrUndefined(t)?null:-1!==t.indexOf("%")?e:parseInt(t,10)}function f(t,e){var i=document.getElementById("gauge-measuretext");return null===i&&(i=T.createElement("text",{id:"gauge-measuretext"}),document.body.appendChild(i)),i.innerText=t,i.style.position="absolute",i.style.fontSize=e.size,i.style.fontWeight=e.fontWeight,i.style.fontStyle=e.fontStyle,i.style.fontFamily=e.fontFamily,i.style.visibility="hidden",i.style.top="-100",i.style.left="0",i.style.whiteSpace="nowrap",new E(i.clientWidth,i.clientHeight)}function x(t,e,i){var o=e;if(t<f(e,i).width)for(var n=e.length-1;0<=n;--n)if(f(o=e.substring(0,n)+"...",i).width<=t||o.length<4)return o=o.length<4?" ":o;return o}function kt(t,e,i,o,n,r){r="pointer"===r?t<=o&&n<=t:null!=e&&e<=o&&n<=e&&null!=i&&i<=o&&n<=i;return r}function Et(t,e,i,o,n,r){var a=t.getBoundingClientRect(),l=e.getBoundingClientRect(),s=-1<e.id.indexOf("MarkerPointer")?l.height/2:o.isInversed?l.height:0,e=-1<e.id.indexOf("MarkerPointer")?l.width/2:o.isInversed?0:l.width,h=new E(o.lineBounds.width,o.lineBounds.height),s="drag"===n?r.y-o.lineBounds.y:l.top+s-a.top-o.lineBounds.y,t=ee(t),n="drag"===n?r.x-o.lineBounds.x+t:l.left+e-a.left-o.lineBounds.x+t,r="Vertical"===i?h.height:h.width,l="Vertical"===i?s:n;return("Vertical"===i?o.isInversed?l/r:1-l/r:o.isInversed?1-l/r:l/r)*o.visibleRange.delta+o.visibleRange.min}function Lt(t,e,i){var o=document.getElementById("gauge_path");null===o&&((o=T.createElement("text",{id:"gauge_path"})).style.position="absolute",o.style.top="0px",o.style.left="0px",i.appendChild(o));i=new d.SvgRenderer("id").createSvg({id:"box_path",width:e.width,height:e.height}),i.appendChild(t),o.appendChild(i),e=t.getBBox();return T.remove(o),e}function w(t){return document.getElementById(t)}function b(t){t=w(t);t&&T.remove(t)}function k(t,e,i,o){t=(t-o.min)/o.delta;return"Vertical"===i?e.isInversed?t:1-t:e.isInversed?1-t:t}function Ot(t){return"font-size:"+t.size+"; font-style:"+t.fontStyle+"; font-weight:"+t.fontWeight+"; font-family:"+t.fontFamily+";opacity:"+t.opacity+"; color:"+t.color+";"}function Bt(t,e,i){for(var o=0,n=Object.keys(e);o<n.length;o++){var r=n[o];t=t.split("{"+r+"}").join(It(e[r],i).toString())}return t}function It(t,e){e=e.format&&!isNaN(Number(t))?e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator})(Number(t)):t;return null!==e?e:""}function zt(e,t){var i=null;try{"function"==typeof e?i=T.compile(e):document.querySelectorAll(e).length?i=T.compile(document.querySelector(e).innerHTML.trim()):(t.isVue||t.isVue3)&&(i=T.compile(e))}catch(t){i=T.compile(e)}return i}function Rt(t,e){e.appendChild(t);var i=t.offsetWidth,o=t.offsetHeight;return e.removeChild(t),new E(i,o)}function _t(t,e,i,o){T.createElement("a",{attrs:{download:t+"."+e.toLocaleLowerCase(),href:i}}).dispatchEvent(new MouseEvent(o?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}function Dt(t){this.id=t}var Nt,Mt=function(t,e,i,o){this.min=t,this.max=e,this.interval=i,this.delta=o},Vt=function(t,e){this.x=t,this.y=e},E=function(t,e){this.width=t,this.height=e},L=function(t,e,i,o){this.x=t,this.y=e,this.width=i,this.height=o},v=(h(jt,Nt=Dt),jt);function jt(t,e,i,o,n,r,a,l){void 0===l&&(l="");t=Nt.call(this,t)||this;return t.opacity=n,t.fill=e,t.stroke=o,t["stroke-width"]=i,t["stroke-dasharray"]=r,t.d=a,t.transform=l,t}var Ut,Gt=function(t,e,i,o,n){this.opacity=o,this.id=t,this.y=n.y,this.x=n.x,this.fill=e,this.stroke=i.color,this["stroke-width"]=i.width,this["stroke-dasharray"]=i.dashArray,this.height=n.height,this.width=n.width},C=(h(Wt,Ut=Dt),Wt);function Wt(t,e,i,o,n,r,a){void 0===r&&(r="");t=Ut.call(this,t)||this;return t.transform="",t.baseLine="auto",t.x=e,t.y=i,t.anchor=o,t.text=n,t.transform=r,t.baseLine=a,t}var Ht=function(t,e,i,o,n){this.text=t,this.value=e,this.size=i,this.x=o,this.y=n},Xt=function(t,e){this.align=e,this.axisIndex=t};function Yt(t,e,i,o,n){var r=new d.SvgRenderer(""),i=(T.isNullOrUndefined(t.id)||b(t.id),"fill:"+i+"; font-size:"+e.size+"; font-style:"+e.fontStyle+" ; font-weight:"+e.fontWeight+"; font-family:"+e.fontFamily+"; text-anchor:"+t.anchor+"; transform:"+t.transform+"; opacity:"+(T.isNullOrUndefined(o)?e.opacity:o)+"; dominant-baseline:"+t.baseLine+";"),e={id:t.id,x:t.x,y:t.y,style:i},o=r.createText(e,t.text);return n.appendChild(o),o}function Jt(t,e,i,o){for(var n,r=e-t,a=qt(i,o),l=r/a,s=Math.pow(10,Math.floor(Math.log(l)/Math.log(10))),h=0,d=[10,5,2,1];h<d.length&&!(a<r/(n=s*d[h]));h++)l=n;return l}function qt(t,e){e=5*("Horizontal"===e?.533:1);return Math.max(t*(e/100),1)}function F(t,e){var t=t.id.replace(e.element.id,"").split("_"),i=parseInt(t[2],10),t=parseInt(t[4],10);return{axis:e.axes[i],axisIndex:i,pointer:e.axes[i].pointers[t],pointerIndex:t}}function Zt(e,t){var i=null;return t.forEach(function(t){e>=t.start&&t.end>=e&&t.start!==t.end&&(i=t.interior)}),i}function Qt(t,e,i){var o=i.getBoundingClientRect(),n=i.ownerDocument.defaultView.pageXOffset,r=i.ownerDocument.defaultView.pageYOffset,a=i.ownerDocument.documentElement.clientTop,i=i.ownerDocument.documentElement.clientLeft,n=o.left+n-i,i=o.top+r-a;return new Vt(t-n,e-i)}function Kt(t){var e;switch(t.toLowerCase()){case"tailwind":e=["#0369A1","#14B8A6","#15803D","#334155","#5A61F6","#65A30D","#8B5CF6","#9333EA","#F59E0B","#F97316"];break;case"tailwinddark":e=["#10B981","#22D3EE","#2DD4BF","#4ADE80","#8B5CF6","#E879F9","#F472B6","#F87171","#F97316","#FCD34D"];break;case"tailwind3":e=["#2F4074","#03B4B4","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"tailwind3dark":e=["#8029F1","#1ABC9C","#0D72DE","#FF5733","#D63384","#F39C12","#EF291F","#91C822"];break;case"fluent":e=["#614570","#4C6FB1","#CC6952","#3F579A","#4EA09B","#6E7A89","#D4515C","#E6AF5D","#639751","#9D4D69"];break;case"fluentdark":e=["#8AB113","#2A72D5","#43B786","#584EC6","#E85F9C","#6E7A89","#EA6266","#EBA844","#26BC7A","#BC4870"];break;case"material3":e=["#6200EE","#E77A16","#82C100","#7107DC","#05BB3D","#D21020","#FAD200","#0085FF","#9204EA","#08EE9B"];break;case"material3dark":e=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;case"fluent2":e=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"fluent2dark":case"fluent2highcontrast":e=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;case"bootstrap5":case"bootstrap5dark":e=["#6610F2","#6f42C1","#D63384","#DC3545","#FD7E14","#FFC107","#198754","#0DCAF0"];break;default:e=["#ff5985","#ffb133","#fcde0b","#27d5ff","#50c917"]}return e}function $t(t,e,i,o,n,r,a,l){var s,h=i.width,d=i.height,p=t.x,u=t.y;switch(e){case"Circle":s=(h+d)/4,p="Vertical"===r?a.opposedPosition?"Near"===l.placement?p-s:p+s:"Far"!==l.placement?p-s:p+s:p,u="Vertical"===r?u:a.opposedPosition?"Near"===l.placement?u-s:u+s:"Far"===l.placement?u+s:u-s,T.merge(n,{r:s,cx:p,cy:u});break;case"Diamond":case"Rectangle":p="Horizontal"===r?p-h/2:!a.opposedPosition&&"Far"!==l.placement||a.opposedPosition&&"Near"===l.placement?p-h:p,u="Vertical"===r?u:a.opposedPosition?"Near"===l.placement?u-d/2:u+d/2:"Far"===l.placement?u+d/2:u-d/2,T.merge(n,{d:"Diamond"===e?"M "+p+" "+u+" L "+(p+h/2)+" "+(u-d/2)+" L "+(p+h)+" "+u+" L "+(p+h/2)+" "+(u+d/2)+" L "+p+" "+u+" z":"M "+p+" "+(u-d/2)+" L "+(p+h)+" "+(u-d/2)+" L "+(p+h)+" "+(u+d/2)+" L "+p+" "+(u+d/2)+" L "+p+" "+(u-d/2)+" z"});break;case"Triangle":T.merge(n,{d:"Vertical"===r?"M "+p+" "+u+" L"+(p-h)+" "+(u-d/2)+"L"+(p-h)+" "+(u+d/2)+" Z":"M "+p+" "+u+" L"+(p+h/2)+" "+(u-d)+"L"+(p-h/2)+" "+(u-d)+" Z"});break;case"InvertedTriangle":T.merge(n,{d:"Vertical"===r?"M "+p+" "+u+" L"+(p+h)+" "+(u-d/2)+"L"+(p+h)+" "+(u+d/2)+" Z":"M "+p+" "+u+" L"+(p+h/2)+" "+(u+d)+"L"+(p-h/2)+" "+(u+d)+" Z"});break;case"Arrow":T.merge(n,{d:"Vertical"===r?"M "+p+" "+u+" L"+(p-h/2)+" "+(u-d/2)+" L"+(p-h/2)+" "+(u-d/2+d/4)+" L"+(p-h)+" "+(u-d/2+d/4)+" L"+(p-h)+" "+(u+d/2-d/4)+" L"+(p-h/2)+" "+(u+d/2-d/4)+" L"+(p-h/2)+" "+(u+d/2)+"z":"M "+p+" "+u+" L"+(p+h/2)+" "+(u-d/2)+" L"+(p+h/2-h/4)+" "+(u-d/2)+" L"+(p+h/2-h/4)+" "+(u-d)+" L"+(p-h/2+h/4)+" "+(u-d)+" L"+(p-h/2+h/4)+" "+(u-d/2)+" L"+(p-h/2)+" "+(u-d/2)+"z"});break;case"InvertedArrow":T.merge(n,{d:"Vertical"===r?"M "+p+" "+u+"L"+(p+h/2)+" "+(u-d/2)+" L"+(p+h/2)+" "+(u-d/2+d/4)+" L"+(p+h)+" "+(u-d/2+d/4)+" L"+(p+h)+" "+(u+d/2-d/4)+" L"+(p+h/2)+" "+(u+d/2-d/4)+" L"+(p+h/2)+" "+(u+d/2)+"z":"M "+p+" "+u+" L"+(p+h/2)+" "+(u+d/2)+" L"+(p+h/2-h/4)+" "+(u+d/2)+" L"+(p+h/2-h/4)+" "+(u+d)+" L"+(p-h/2+h/4)+" "+(u+d)+" L"+(p-h/2+h/4)+" "+(u+d/2)+" L"+(p-h/2)+" "+(u+d/2)+"z"});break;case"Image":T.merge(n,{href:o,height:d,width:h,x:p-h/2,y:u-d/2})}return n}function S(t,e,i,o,n,r){var a,l=t.x,t=t.y;return"Text"===e&&(a=(e=f(r.text,r.textStyle)).height,e=e.width,l="Horizontal"===o?l-e/2:!n.opposedPosition&&"Far"!==r.placement||n.opposedPosition&&"Near"===r.placement?"Inside"===r.position&&!n.opposedPosition||"Cross"===r.position||n.opposedPosition&&"Near"===r.placement&&"Outside"===r.position?l-e/2:l-e:"Cross"===r.position&&"Far"===r.placement||n.opposedPosition&&"Cross"===r.position&&("None"===r.placement||"Center"===r.placement)?l+e/2:l,t="Vertical"===o?t+a/4:n.opposedPosition?"Near"===r.placement?t:"Cross"===r.position?t+a/2+a/4:"Outside"===r.position?t+a:t+a/2:"Far"===r.placement?"Cross"===r.position?t+a/2+a/4:"Inside"===r.position?t+a:t+a/2:t,T.merge(i,{x:l,y:t})),i}function te(t,e,i,o,n,r,a,l){var s=" ",h=l;switch(e){case"RoundedRectangle":g=t.x,d=t.y,m=t.width,p=t.height,y=g+m-(h=("Vertical"===i&&0===t.height||"Horizontal"===i&&0===t.width)&&10<h?10:h),u=d+p-h,c=h+d,f=h+g,("container"===n||"bar"===n&&("Vertical"===i&&0!==t.height||"Horizontal"===i&&0!==t.width))&&(g+m/2<f&&(y=f=g+m/2),d+p/2<c)&&(u=c=d+p/2),"bar"===n&&("Vertical"===i&&0===t.height||"Horizontal"===i&&0===t.width)&&(t.width<h/2&&!a.isInversed?y=y+h+h/2:t.width<h/2&&a.isInversed&&(f=g-Math.ceil(h/4)),t.height<h/2&&!a.isInversed?c=d-Math.ceil(h/4):t.height<h/2&&a.isInversed&&(u=u+h+h/2)),s=(s=(s="M "+g+" "+c+" Q "+g+" "+d+" "+f+" "+d+" ")+("L "+y+" "+d+" Q "+(g+m)+" "+d+" "+(g+m)+" "+c+" ")+("L "+(g+m)+" "+u+" Q "+(g+m)+" "+(d+p)+" "+y+" "+(d+p)+" "))+(" L "+f+" "+(d+p)+" Q "+g+" "+(d+p)+" "+g+" "+u+" ")+("L "+g+" "+c+" z");break;case"Thermometer":var d,p,u,g,c,m="Vertical"===i?t.width:t.height,y=m+m/2/Math.PI,f=m/2;s="Vertical"===i?(d=r+r/2/Math.PI-y,p="bar"===n?t.y+d:t.y,u="bar"===n?t.y+(f-f/Math.PI):t.y,g=t.height,"M"+t.x+" "+(p+g)+" A "+y+" "+y+", 0, 1, 0, "+(t.x+t.width)+" "+(p+g)+" L "+(t.x+t.width)+" "+u+" A "+f+" "+f+", 0, 1, 0, "+t.x+" "+u+" z "):(c="bar"!==n||a.isInversed?t.x:t.x-(r+r/2/Math.PI-y),m="bar"===n?t.width-(f-f/Math.PI):t.width,"M"+c+" "+t.y+" A "+y+" "+y+", 0, 1, 0, "+c+" "+(t.y+t.height)+" L "+(("bar"===n?t.x:c)+m)+" "+(t.y+t.height)+" A "+f+" "+f+", 0, 1, 0, "+(("bar"===n?t.x:c)+m)+" "+t.y+" z ")}return s}function ee(t){var e=w(t.id+"_svg"),i=0;return i=T.isNullOrUndefined(e)||T.isNullOrUndefined(t)?i:t.getBoundingClientRect().left-e.getBoundingClientRect().left}function ie(t,e){var i,o=w(e.element.id+"_EJ2_Title_Tooltip");o?(o.innerText=t,o.style.top=(e.actualRect.y+10).toString()+"px",o.style.left=e.actualRect.x.toString()+"px"):(i=(i=f(t,{size:"12px",fontFamily:"Segoe UI"}).width+10)<e.actualRect.width?i:e.actualRect.width-10,(o=T.createElement("div",{id:e.element.id+"_EJ2_Title_Tooltip",className:"EJ2-LinearGauge-Tooltip"})).innerText=t,o.style.cssText="top:"+(e.actualRect.y+10).toString()+"px; left:"+e.actualRect.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; font-family:"Segoe UI";width:'+i+"px;",document.body.style.overflow="hidden",w(e.element.id+"_Secondary_Element").appendChild(o))}function oe(){0<document.getElementsByClassName("EJ2-LinearGauge-Tooltip").length&&document.getElementsByClassName("EJ2-LinearGauge-Tooltip")[0].remove()}P.prototype.calculateAxesBounds=function(){var t,e,i,o,n;this.gauge.nearSizes=[],this.gauge.farSizes=[];this.checkThermometer();for(var r=0;r<this.gauge.axes.length;r++){(t=this.gauge.axes[r]).checkAlign=new Xt(r,t.opposedPosition?"Far":"Near"),(t.opposedPosition?this.gauge.farSizes:this.gauge.nearSizes).push(1),this.calculateLineBounds(t,r),this.calculateTickBounds(t),this.calculateLabelBounds(t),0<t.pointers.length&&this.calculatePointerBounds(t),0<t.ranges.length&&this.calculateRangesBounds(t);var a=t.labelBounds,l=this.gauge.axes[r].labelStyle.offset;"Vertical"===this.gauge.orientation?(e=t.opposedPosition?t.lineBounds.x:a.x-l-8,i=t.lineBounds.y,n=t.lineBounds.height,o=Math.abs(t.opposedPosition?a.x+a.width+8-e-l:t.lineBounds.x-e)):(i=t.opposedPosition?t.lineBounds.y:a.y-a.height-l-8,e=t.lineBounds.x,o=t.lineBounds.width,n=Math.abs(t.opposedPosition?a.y+8-i-l:Math.abs(t.lineBounds.y-i))),t.bounds=new L(e,i,o,n)}},P.prototype.calculateLineBounds=function(t,e){var i,o,n,r,a=t.line.height,l=this.gauge.orientation,s=this.gauge.containerBounds,a=0<t.line.width?a:null,h=("Vertical"===l?(o=T.isNullOrUndefined(a)?s.y:s.y+(s.height/2-a/2),n=t.line.width,r=T.isNullOrUndefined(a)?s.height:a):(i=T.isNullOrUndefined(a)?s.x:s.x+(s.width/2-a/2),r=t.line.width,n=T.isNullOrUndefined(a)?s.width:a),this.checkPreviousAxes(t,e)),d=0;if(!T.isNullOrUndefined(h)){for(var p=h;0<=p;p--)if(this.gauge.axes[p].minimum!==this.gauge.axes[p].maximum){h=p,d++;break}0===d&&(h=null)}T.isNullOrUndefined(h)?"Vertical"===l?i=(t.opposedPosition?s.x+s.width:s.x)+t.line.offset:o=(t.opposedPosition?s.y+s.height:s.y)+t.line.offset:(a=this.gauge.axes[h],"Vertical"===l?i=(t.opposedPosition?a.bounds.x+a.bounds.width:a.bounds.x)+t.line.offset:o=(t.opposedPosition?a.bounds.y+a.bounds.height:a.bounds.y)+t.line.offset),t.lineBounds=new L(i,o,n,r),t.minimum===t.maximum&&(t.lineBounds=new L(0,0,0,0))},P.prototype.calculateTickBounds=function(t){var e,i,o=Math.min(t.minimum,t.maximum),n=Math.max(t.minimum,t.maximum),o=o===n?n-1:o,r=t.lineBounds,a=t.majorTicks,l=t.minorTicks,s=(t.majorInterval=a.interval,t.minorInterval=l.interval,"Vertical"===this.gauge.orientation?r.height:r.width),h=("Vertical"===this.gauge.orientation?r.width:r.height)/2;t.majorInterval=T.isNullOrUndefined(t.majorInterval)?Jt(o,n,s,this.gauge.orientation):a.interval,t.visibleRange=new Mt(o,n,t.majorInterval,n-o),t.minorInterval=T.isNullOrUndefined(t.minorInterval)?t.majorInterval/2:t.minorInterval,"Vertical"===this.gauge.orientation?(e="Auto"===t.majorTicks.position?(t.opposedPosition?r.x+h:r.x-h-a.height)+a.offset:e,e="Auto"!==t.majorTicks.position?"Cross"===t.majorTicks.position?r.x-a.height/2-a.offset:"Inside"===t.majorTicks.position&&!t.opposedPosition||"Outside"===t.majorTicks.position&&t.opposedPosition?r.x-h-a.height-a.offset:r.x+h+a.offset:e,t.majorTickBounds=new L(e,r.y,a.height,r.height),t.minimum===t.maximum&&(t.majorTickBounds=new L(0,0,0,0)),e="Auto"===t.minorTicks.position?(t.opposedPosition?r.x+h:r.x-h-l.height)+l.offset:e,e="Auto"!==t.minorTicks.position?"Cross"===t.minorTicks.position?r.x-l.height/2-l.offset:"Inside"===t.minorTicks.position&&!t.opposedPosition||"Outside"===t.minorTicks.position&&t.opposedPosition?r.x-h-l.height-l.offset:r.x+h+l.offset:e,t.minorTickBounds=new L(e,r.y,l.height,r.height)):(i="Auto"===t.majorTicks.position?(t.opposedPosition?r.y+h:r.y-h-a.height)+a.offset:i,i="Auto"!==t.majorTicks.position?"Cross"===t.majorTicks.position?r.y-a.height/2-a.offset:"Inside"===t.majorTicks.position&&!t.opposedPosition||"Outside"===t.majorTicks.position&&t.opposedPosition?r.y-h-a.height-a.offset:r.y+h+a.offset:i,t.majorTickBounds=new L(r.x,i,r.width,a.height),t.minimum===t.maximum&&(t.majorTickBounds=new L(0,0,0,0)),i="Auto"===t.minorTicks.position?(t.opposedPosition?r.y+h:r.y-h-l.height)+l.offset:i,i="Auto"!==t.minorTicks.position?"Cross"===t.minorTicks.position?r.y-l.height/2-a.offset:"Inside"===t.minorTicks.position&&!t.opposedPosition||"Outside"===t.minorTicks.position&&t.opposedPosition?r.y-h-l.height-l.offset:r.y+h+l.offset:i,t.minorTickBounds=new L(r.x,i,r.width,l.height)),t.minimum===t.maximum&&(t.minorTickBounds=new L(0,0,0,0))},P.prototype.calculateLabelBounds=function(t){var e,i,o,n,r,a,l="Auto"!==t.labelStyle.position&&"Auto"!==t.majorTicks.position&&"Auto"!==t.minorTicks.position,s=l&&t.labelStyle.position===t.minorTicks.position&&t.minorTicks.position!==t.majorTicks.position?t.minorTickBounds:t.majorTickBounds,h=t.labelStyle.offset;this.calculateVisibleLabels(t),t.minimum===t.maximum?t.labelBounds=new L(0,0,0,0):(e=t.maxLabelSize.width,i=t.maxLabelSize.height/2,"Vertical"===this.gauge.orientation?(o="Auto"===t.labelStyle.position?(t.opposedPosition?s.x+s.width+5:s.x-e-5)+h:o,n=s.x,r=("Cross"===t.majorTicks.position||"Cross"===t.minorTicks.position)&&s.width>t.lineBounds.width?s.width/2:t.lineBounds.width/2,n=l&&t.labelStyle.position!==t.minorTicks.position&&t.labelStyle.position!==t.majorTicks.position?"Cross"!==t.minorTicks.position&&"Cross"!==t.majorTicks.position?"Inside"===t.labelStyle.position?s.x-t.lineBounds.width:"Outside"===t.labelStyle.position?s.x+t.lineBounds.width:s.x:"Inside"===t.labelStyle.position?t.lineBounds.x-r:"Outside"===t.labelStyle.position?t.lineBounds.x-s.width+r:s.x:s.x,o="Auto"!==t.labelStyle.position?"Cross"===t.labelStyle.position?t.lineBounds.x-t.maxLabelSize.width/4-h:"Inside"===t.labelStyle.position&&!t.opposedPosition||"Outside"===t.labelStyle.position&&t.opposedPosition?n-e-5-h:n+s.width+5+h:o,n=t.lineBounds.y):(n="Auto"===t.labelStyle.position?(t.opposedPosition?s.y+s.height+5+i:s.y-5)+h:n,a=s.y,r=("Cross"===t.majorTicks.position||"Cross"===t.minorTicks.position)&&s.height>t.lineBounds.height?s.height/2:t.lineBounds.height/2,a=l&&t.labelStyle.position!==t.minorTicks.position&&t.labelStyle.position!==t.majorTicks.position?"Cross"!==t.minorTicks.position&&"Cross"!==t.majorTicks.position?"Inside"===t.labelStyle.position?s.y-t.lineBounds.height:"Outside"===t.labelStyle.position?s.y+t.lineBounds.height:s.y:"Inside"===t.labelStyle.position?t.lineBounds.y-r:"Outside"===t.labelStyle.position?t.lineBounds.y-s.height+r:s.y:s.y,n="Auto"!==t.labelStyle.position?"Cross"===t.labelStyle.position?t.lineBounds.y+t.maxLabelSize.height/4-h:"Inside"===t.labelStyle.position&&!t.opposedPosition||"Outside"===t.labelStyle.position&&t.opposedPosition?a-5-h:a+s.height+5+i+h:n,o=t.lineBounds.x),t.labelBounds=new L(o,n,e,i))},P.prototype.calculatePointerBounds=function(t){for(var e,i=t.visibleRange,o=Math.min(i.min,i.max),n=Math.max(i.min,i.max),r=0;r<t.pointers.length;r++)e=t.pointers[r],!T.isNullOrUndefined(e.offset)&&0<e.offset.length?e.currentOffset=At(e.offset,"Horizontal"===this.gauge.orientation?this.gauge.availableSize.height/2:this.gauge.availableSize.width/2):e.currentOffset=e.offset,e.currentValue=null===e.value||e.value<o?o:e.value>n?n:e.value,0<e.width&&kt(e.currentValue,null,null,i.max,i.min,"pointer")&&this["calculate"+e.type+"Bounds"](t,e)},P.prototype.calculateMarkerBounds=function(t,e){var i,o,n=t.lineBounds,r=e.currentOffset,a=t.visibleRange,l=e.placement,s=t.majorTickBounds,h=t.labelBounds,d=e.border.width,p=f(e.text,e.textStyle);"Vertical"===this.gauge.orientation?(i="Auto"===e.position?(i=t.opposedPosition?"Far"===l?h.x+h.width:"Center"===l?s.x+s.width:n.x:("Near"===l?h:"Center"===l?s:n).x,t.opposedPosition?("Near"===e.placement?"InvertedTriangle"===e.markerType||"InvertedArrow"===e.markerType?i+d:i-d:"Triangle"===e.markerType||"Arrow"===e.markerType?i-d:i+d)+r:("Far"===e.placement?"Triangle"===e.markerType||"Arrow"===e.markerType?i-d:i+d:"InvertedTriangle"===e.markerType||"InvertedArrow"===e.markerType?i+d:i-d)+r):"Cross"===e.position?n.x-("Text"===e.markerType?p.width:e.width/2)-r:"Inside"===e.position&&!t.opposedPosition||"Outside"===e.position&&t.opposedPosition?n.x-n.width/2-("InvertedTriangle"!==e.markerType&&"Triangle"!==e.markerType?("Text"===e.markerType?p:e).width:0)-r:n.x+n.width/2+r,o=k(e.currentValue,t,this.gauge.orientation,a)*n.height+n.y):(o="Auto"===e.position?(o=t.opposedPosition?"Far"===l?h.y:"Center"===l?s.y+s.height:n.y:"Near"===l?h.y-h.height:("Center"===l?s:n).y,t.opposedPosition?("Near"===e.placement?"InvertedTriangle"===e.markerType||"InvertedArrow"===e.markerType?o+d:o-d:"Triangle"===e.markerType||"Arrow"===e.markerType?o-d:o+d)+r:("Far"===e.placement?"Triangle"===e.markerType||"Arrow"===e.markerType?o-d:o+d:"InvertedTriangle"===e.markerType||"InvertedArrow"===e.markerType?o+d:o-d)+r):"Cross"===e.position?n.y-("Text"===e.markerType?p:e).height/2-r:"Inside"===e.position&&!t.opposedPosition||"Outside"===e.position&&t.opposedPosition?n.y-n.height/2-("InvertedTriangle"!==e.markerType&&"Triangle"!==e.markerType?("Text"===e.markerType?p:e).height:0)-r:n.y+n.height/2+r,i=k(e.currentValue,t,this.gauge.orientation,a)*n.width+n.x),e.bounds=new L(i,o,e.width,e.height),t.minimum===t.maximum&&(e.bounds=new L(0,0,0,0),e.width=0,e.height=0)},P.prototype.calculateBarBounds=function(t,e){var i,o,n,r,a=t.lineBounds,l=t.visibleRange,s=this.gauge.orientation,h=e.currentOffset,d=this.gauge.containerBounds;"Vertical"===s?("Auto"===e.position?(i=0<d.width?d.x+(d.width/2-e.width/2):t.opposedPosition?a.x-e.width-10:a.x+10,i+=h):i="Cross"===e.position?a.x-e.width/2-h:"Inside"===e.position&&!t.opposedPosition||"Outside"===e.position&&t.opposedPosition?a.x-a.width/2-e.width-h:a.x+a.width/2+h,o=k(e.currentValue,t,s,l)*a.height+a.y,r=k(l.min,t,s,l)*a.height+a.y,n=Math.abs(r-o),o=t.isInversed?r:o,r=e.width):("Auto"===e.position?(o=0<d.height?d.y+d.height/2-e.height/2:t.opposedPosition?a.y-e.height-10:a.y+10,o+=h):o="Cross"===e.position?a.y-e.height/2-h:"Inside"===e.position&&!t.opposedPosition||"Outside"===e.position&&t.opposedPosition?a.y-a.height/2-e.height-h:a.y+a.height/2+h,n=e.height,i=k(l.min,t,s,l)*a.width+a.x,d=k(e.currentValue,t,s,l)*a.width+a.x,r=Math.abs(d-i),i=t.isInversed?d:i),e.bounds=new L(i,o,r,n),t.minimum===t.maximum&&(e.bounds=new L(0,0,0,0),e.width=0,e.height=0)},P.prototype.calculateRangesBounds=function(t){for(var e,i,o,n,r,a,l,s,h,d,p,u,g=t.lineBounds,c=t.visibleRange,m=this.gauge.orientation,y=0;y<t.ranges.length;y++)e=t.ranges[y],this.gauge.gradientModule&&(h=this.gauge.gradientModule.getGradientColorString(e)),!T.isNullOrUndefined(e.offset)&&0<e.offset.length?e.currentOffset=At(e.offset,"Horizontal"===this.gauge.orientation?this.gauge.availableSize.height/2:this.gauge.availableSize.width/2):e.currentOffset=e.offset,kt(null,i=Math.max(e.start,c.min),o=Math.min(e.end,c.max),c.max,c.min,"range")&&(o=Math.max(i,o),i=Math.min(i,e.end),s=e.position,d=e.startWidth,p=e.endWidth,u=!T.isNullOrUndefined(this.gauge.rangePalettes)&&0<this.gauge.rangePalettes.length?this.gauge.rangePalettes:Kt(this.gauge.theme),e.interior=h||e.color||u[y%u.length],"Vertical"===this.gauge.orientation?(a=g.x+e.currentOffset+("Cross"===s?d/2:"Outside"===s||"Auto"===s?-g.width/2:"Inside"===s?g.width/2:0),l=k(o,t,m,c)*g.height+g.y,u=k(i,t,m,c)*g.height+g.y,n=t.opposedPosition?"Inside"===s||"Cross"===s?a-d:a+d:"Inside"===s?a+d:a-d,r=t.opposedPosition?"Inside"===s||"Cross"===s?a-p:a+p:"Inside"===s?a+p:a-p,e.path="M"+a+" "+l+" L "+a+" "+(l+(u-=l))+" L "+n+" "+(l+u)+" L "+r+" "+l+" L "+a+" "+l+" z "):(a=k(o,t,m,c)*g.width+g.x,l=t.lineBounds.y+e.currentOffset+("Cross"===s?d/2:"Outside"===s||"Auto"===s?-g.height/2:"Inside"===s?g.height/2:0),u=k(i,t,m,c)*g.width+g.x,n=t.opposedPosition?"Inside"===s||"Cross"===s?l-d:l+d:"Inside"===s?l+d:l-d,r=t.opposedPosition?"Inside"===s||"Cross"===s?l-p:l+p:"Inside"===s?l+p:l-p,e.path="M"+a+" "+l+" L "+(a-(u=a-u))+" "+l+" L "+(a-u)+" "+n+" L "+a+" "+r+" L "+a+" "+l+" z "))},P.prototype.checkPreviousAxes=function(t,e){e-=1;return e=0<=e?this.gauge.axes[e].checkAlign.align===t.checkAlign.align?e:this.checkPreviousAxes(t,e):null},P.prototype.calculateVisibleLabels=function(o){if(o.visibleLabels=[],o.minimum!==o.maximum){for(var n,t=o.visibleRange.min,e=o.visibleRange.max,i=o.visibleRange.interval,r=void 0,a=o.labelStyle,l=a.format&&null!==a.format.match("{value}"),s=function(t){function e(t){t.cancel||o.visibleLabels.push(new Ht(t.text,i,n))}var i=t;-1!==i.toString().indexOf("e")&&T.isNullOrUndefined(h.gauge.format)&&(t=parseInt(i.toString().split("-")[1],10),i=parseInt(i.toFixed(t),10)),r={cancel:!1,name:mt,axis:o,text:l?Bt(a.format,{value:i},h.gauge):It(i,h.gauge).toString(),value:i};e.bind(h),h.gauge.trigger(mt,r,e)},h=this,d=t;d<=e&&0<i;d+=i)s(d);var t=o.visibleLabels.length?o.visibleLabels[o.visibleLabels.length-1].value:null,p=o.visibleRange.max;t!==p&&!0===o.showLastLabel&&(r={cancel:!1,name:mt,axis:o,text:l?Bt(a.format,{value:p},this.gauge):It(p,this.gauge).toString(),value:p},(t=function(t){n=f(t.text,o.labelStyle.font),t.cancel||o.visibleLabels.push(new Ht(t.text,p,n))}).bind(this),this.gauge.trigger(mt,r,t)),this.getMaxLabelWidth(o)}},P.prototype.getMaxLabelWidth=function(t){var e;t.maxLabelSize=new E(0,0);for(var i=0;i<t.visibleLabels.length;i++)(e=t.visibleLabels[i]).size=f(e.text,t.labelStyle.font),e.size.width>t.maxLabelSize.width&&(t.maxLabelSize.width=e.size.width),e.size.height>t.maxLabelSize.height&&(t.maxLabelSize.height=e.size.height)},P.prototype.checkThermometer=function(){"Thermometer"===this.gauge.container.type&&this.gauge.axes.map(function(e){e.isInversed&&e.pointers.map(function(t){"Bar"===t.type&&(e.isInversed=!1)})})},P.prototype.destroy=function(){this.gauge=null};var ne=P;function P(t){this.gauge=t}function re(t){this.gauge=t}re.prototype.performMarkerAnimation=function(t,e,i){var o,n,r,a=this,l=t,s=e.visibleRange,h="Vertical"===this.gauge.orientation?e.lineBounds.height:e.lineBounds.width,d="Vertical"===this.gauge.orientation?e.lineBounds.y:e.lineBounds.x,p=("Vertical"===this.gauge.orientation?i.bounds.y=k(i.currentValue,e,this.gauge.orientation,s)*h+d:i.bounds.x=k(i.currentValue,e,this.gauge.orientation,s)*h+d,o=new v(l.id,null,null,null),o=$t(i.bounds,i.markerType,new E(i.width,i.height),i.imageUrl,o,this.gauge.orientation,e,i),"Text"===i.markerType&&(n=new C(l.id,0,0,"middle",i.text,null,"auto"),n=S(i.bounds,i.markerType,n,this.gauge.orientation,e,i)),"string"==typeof i.startValue?parseInt(i.startValue,10):i.startValue),u=i.currentValue,p=p===u?s.min:p,g=Math.abs(p-u),c=o.d,m=o.cx,y=o.cy,f=("Text"===i.markerType?n:o).x,b=("Text"===i.markerType?n:o).y;new T.Animation({}).animate(l,{name:"Linear",duration:"Enable"!==T.animationMode||(0!==i.animationDuration||this.gauge.allowLoadingAnimation)&&0!==this.gauge.animationDuration?this.gauge.allowLoadingAnimation&&0===i.animationDuration?this.gauge.animationDuration/this.gauge.splitUpCount:i.animationDuration:1e3,progress:function(t){t.timeStamp>=t.delay&&(r=(t.timeStamp-t.delay)/t.duration,r=p<u?p+r*g:p-r*g,"Vertical"===a.gauge.orientation?(i.bounds.y=k(r,e,a.gauge.orientation,s)*h+d,o=$t(i.bounds,i.markerType,new E(i.width,i.height),i.imageUrl,o,a.gauge.orientation,e,i),"Text"===i.markerType&&(n=S(i.bounds,i.markerType,n,a.gauge.orientation,e,i)),T.isNullOrUndefined(o.r)?T.isNullOrUndefined(("Text"===i.markerType?n:o).y)?l.setAttribute("d",o.d):l.setAttribute("y","Text"===i.markerType?n.y:o.y.toString()):l.setAttribute("cy",o.cy.toString())):(i.bounds.x=k(r,e,a.gauge.orientation,s)*h+d,o=$t(i.bounds,i.markerType,new E(i.width,i.height),i.imageUrl,o,a.gauge.orientation,e,i),"Text"===i.markerType&&(n=S(i.bounds,i.markerType,n,a.gauge.orientation,e,i)),T.isNullOrUndefined(o.r)?T.isNullOrUndefined(("Text"===i.markerType?n:o).x)?l.setAttribute("d",o.d):l.setAttribute("x","Text"===i.markerType?n.x:o.x.toString()):l.setAttribute("cx",o.cx.toString())),l.style.visibility="visible")},end:function(){var t;T.isNullOrUndefined(y)?T.isNullOrUndefined(b)?l.setAttribute("d",c):(l.setAttribute("y",b.toString()),l.setAttribute("x",f.toString())):(l.setAttribute("cy",y.toString()),l.setAttribute("cx",m.toString())),l.style.visibility="visible",i.isPointerAnimation=!1,i.animationComplete=!0,i.startValue=i.value=i.currentValue,a.gauge.trigger(ct,{axis:e,pointer:i}),a.gauge.allowLoadingAnimation&&(!T.isNullOrUndefined(a.gauge.annotationsModule)&&0<a.gauge.annotations.length&&(""!==a.gauge.annotations[0].content||1<a.gauge.annotations.length)?(t=document.getElementById(a.gauge.element.id+"_AnnotationsGroup"),a.gauge.annotationsModule.annotationAnimate(t,a.gauge)):(a.gauge.allowLoadingAnimation=!1,a.gauge.isOverAllAnimationComplete=!0))}})},re.prototype.performBarAnimation=function(t,e,i){var o,n,r,a,l,s,h,d,p,u=this,g=e.visibleRange,c=t,m="Vertical"===this.gauge.orientation?e.lineBounds.height:e.lineBounds.width,y="Vertical"===this.gauge.orientation?e.lineBounds.y:e.lineBounds.x,f="string"==typeof i.startValue?parseInt(i.startValue,10):i.startValue,b=i.currentValue,f=f===b?g.min:f,v=c.tagName,x=Math.abs(f-b),w=k(b,e,this.gauge.orientation,g)*m+y,C=k(g.min,e,this.gauge.orientation,g)*m+y,F="Vertical"===this.gauge.orientation?e.isInversed?C:w:e.isInversed?w:C,S=Math.abs(C-w),P=("Thermometer"===this.gauge.container.type&&0===f&&0<this.gauge.container.width&&(b===e.minimum?t.style.visibility="visible":(h=c.parentElement.childNodes[1].childNodes[0].childNodes[0],"Vertical"===this.gauge.orientation?(C=h.getAttribute("y"),r=h.getAttribute("height"),a=parseInt(C,10)+parseInt(r,10),h.setAttribute("y",a.toString())):(w=h.getAttribute("x"),l=h.getAttribute("width"),a=parseInt(w,10)+parseInt(l,10),h.setAttribute("width","0")))),d=i.value===e.minimum&&"RoundedRectangle"===this.gauge.container.type?"":te(i.bounds,this.gauge.container.type,this.gauge.orientation,new E(i.bounds.width,i.bounds.height),"bar",this.gauge.container.width,e,i.roundedCornerRadius),i.bounds.width),A=i.bounds.height;new T.Animation({}).animate(c,{name:"Linear",duration:"Enable"!==T.animationMode||(0!==i.animationDuration||this.gauge.allowLoadingAnimation)&&0!==this.gauge.animationDuration?this.gauge.allowLoadingAnimation&&0===i.animationDuration?this.gauge.animationDuration/this.gauge.splitUpCount:i.animationDuration:1e3,progress:function(t){t.timeStamp>=t.delay&&(o=(t.timeStamp-t.delay)/t.duration,p=k(f<b?f+o*x:f-o*x,e,u.gauge.orientation,g)*m+y,n=k(g.min,e,u.gauge.orientation,g)*m+y,s=Math.abs(p-n),"Vertical"===u.gauge.orientation?(i.bounds.y=e.isInversed?n:p,A=s):(i.bounds.x=e.isInversed?p:n,P=s),"path"===v?(0===f&&"Thermometer"===u.gauge.container.type&&("Vertical"===u.gauge.orientation?h.setAttribute("y",(a-o*parseInt(r,10)).toString()):h.setAttribute("width",(o*parseInt(l,10)).toString())),p=i.value===e.minimum&&"RoundedRectangle"===u.gauge.container.type?"":te(new L(i.bounds.x,i.bounds.y,P,A),u.gauge.container.type,u.gauge.orientation,new E(P,A),"bar",u.gauge.container.width,e,i.roundedCornerRadius),c.setAttribute("d",p)):"Vertical"===u.gauge.orientation?(c.setAttribute("y",i.bounds.y.toString()),c.setAttribute("height",A.toString())):(c.setAttribute("x",i.bounds.x.toString()),c.setAttribute("width",P.toString())),c.style.visibility="visible")},end:function(){var t;"path"===v?0===f&&"Thermometer"===u.gauge.container.type?c.parentElement.children[1].remove():c.setAttribute("d",d):"Vertical"===u.gauge.orientation?(c.setAttribute("y",F.toString()),c.setAttribute("height",S.toString())):(c.setAttribute("x",F.toString()),c.setAttribute("width",S.toString())),c.style.visibility="visible",i.isPointerAnimation=!1,i.startValue=i.value=i.currentValue,u.gauge.trigger(ct,{axis:e,pointer:i}),u.gauge.allowLoadingAnimation&&(!T.isNullOrUndefined(u.gauge.annotationsModule)&&0<u.gauge.annotations.length&&(""!==u.gauge.annotations[0].content||1<u.gauge.annotations.length)?(t=document.getElementById(u.gauge.element.id+"_AnnotationsGroup"),u.gauge.annotationsModule.annotationAnimate(t,u.gauge)):(u.gauge.allowLoadingAnimation=!1,u.gauge.isOverAllAnimationComplete=!0))}})},ae=function(t,e){return(ae=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};(function(t,e){function i(){this.constructor=t}ae(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)})(A,le=re),A.prototype.renderAxes=function(){var t,e,i,o=this,n=(this.axisElements=[],this.gauge.svgObject.querySelector("#"+this.gauge.element.id+"_Axis_Collections"));n&&T.remove(n),this.axisObject=this.gauge.renderer.createGroup({id:this.gauge.element.id+"_Axis_Collections",transform:"translate( 0, 0 )"});for(var r=this.gauge.splitUpCount=0;r<this.gauge.axes.length;r++)e=(t=this.gauge.axes[r]).majorTicks,i=t.minorTicks,this.htmlObject=this.gauge.renderer.createGroup({id:this.gauge.element.id+"_Axis_Group_"+r}),this.gauge.allowLoadingAnimation&&(0===this.gauge.splitUpCount&&(0<t.line.width||0<t.majorTicks.height&&0<t.majorTicks.width||0<t.minorTicks.height&&0<t.minorTicks.width||0<this.gauge.container.width||0<t.ranges.length&&(1!==t.ranges.length||t.ranges[0].start!==t.ranges[0].end||0!==t.ranges[0].start))&&this.gauge.splitUpCount++,0!==this.gauge.splitUpCount&&1!==this.gauge.splitUpCount||(this.gauge.splitUpCount=0<t.pointers.length?this.gauge.splitUpCount+1:this.gauge.splitUpCount)),this.drawAxisLine(t,this.htmlObject,r),this.drawRanges(t,this.htmlObject,r),this.drawTicks(t,e,this.htmlObject,"MajorTicks",t.majorTickBounds,r),this.drawTicks(t,i,this.htmlObject,"MinorTicks",t.minorTickBounds,r),this.drawAxisLabels(t,this.htmlObject,r),this.drawPointers(t,this.htmlObject,r),this.axisElements.push(this.htmlObject);this.axisElements.forEach(function(t){o.axisObject.appendChild(t)}),this.gauge.svgObject.appendChild(this.axisObject),this.gauge.nearSizes.length!==this.gauge.farSizes.length&&1<this.gauge.axes.length&&this.axisAlign(this.gauge.axes)},A.prototype.axisAlign=function(t){var e,i=0,o=0;"Vertical"===this.gauge.orientation?(t.forEach(function(t){t.opposedPosition?o+=t.bounds.width:i+=t.bounds.width}),i+=this.gauge.containerBounds.width/2,o+=this.gauge.containerBounds.width/2,e=i/2-o/2,this.axisObject.setAttribute("transform","translate("+e+",0)"),T.isNullOrUndefined(this.gauge.containerObject)||this.gauge.containerObject.setAttribute("transform","translate("+e+",0)")):(t.forEach(function(t){t.opposedPosition?o+=t.bounds.height:i+=t.bounds.height}),i+=this.gauge.containerBounds.height/2,o+=this.gauge.containerBounds.height/2,e=i/2-o/2,this.axisObject.setAttribute("transform","translate(0,"+e+")"),T.isNullOrUndefined(this.gauge.containerObject)||this.gauge.containerObject.setAttribute("transform","translate(0,"+e+")"))},A.prototype.drawAxisLine=function(t,e,i){var o=t.lineBounds,n="",r=t.line.color||this.gauge.themeStyle.lineColor;0<t.line.width&&(n="M"+o.x+" "+o.y+" L "+("Vertical"===this.gauge.orientation?o.x:o.x+o.width)+" "+("Vertical"===this.gauge.orientation?o.y+o.height:o.y)+"z",o=new v(this.gauge.element.id+"_AxisLine_"+i,r,t.line.width,r,1,t.line.dashArray,n),i=this.gauge.renderer.drawPath(o),this.gauge.allowLoadingAnimation&&i.classList.add(this.gauge.element.id+"animation"),e.appendChild(i))},A.prototype.drawTicks=function(t,e,i,o,n,r){for(var a,l,s="",h=t.visibleRange,d=t.lineBounds,p=t.majorTicks.color||this.gauge.themeStyle.majorTickColor,u=t.minorTicks.color||this.gauge.themeStyle.minorTickColor,p="MajorTicks"===o?p:u,g="MajorTicks"===o?t.majorInterval:t.minorInterval,c=t.minimum!==t.maximum?e.height:0,m=h.min;m<=h.max&&0<g;m+=g)"MajorTicks"!==o&&"MinorTicks"!==o||(s="Vertical"===this.gauge.orientation?(l=n.x,a=k(m,t,this.gauge.orientation,h)*d.height+d.y,s.concat("M"+l+" "+a+" L"+(l+c)+" "+a+" ")):(l=k(m,t,this.gauge.orientation,h)*d.width+d.x,a=n.y,s.concat("M"+l+" "+a+" L"+l+" "+(a+c)+" ")));u=new v(this.gauge.element.id+"_"+o+"Line_"+r,p,e.width,p,1,null,s),r=this.gauge.renderer.drawPath(u);this.gauge.allowLoadingAnimation&&r.classList.add(this.gauge.element.id+"animation"),i.appendChild(r)},A.prototype.drawAxisLabels=function(t,e,i){for(var o,n,r,a=t.lineBounds,l=t.labelBounds,s=t.majorTickBounds,h=t.visibleRange,d=this.gauge.themeStyle.labelColor,p=t.labelStyle.offset,u=t.visibleLabels.length-1,g=this.gauge.renderer.createGroup({id:this.gauge.element.id+"_AxisLabelsGroup_"+i}),c=0;c<t.visibleLabels.length;c++){var m,y,f,b=t.visibleLabels[c].size,v=t.labelStyle.useRangeColor?Zt(t.visibleLabels[c].value,t.ranges):null,b=(v=T.isNullOrUndefined(v)?t.labelStyle.font.color||d:v,"Vertical"===this.gauge.orientation?(o=k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.height+a.y,y="Auto"!==t.labelStyle.position||t.opposedPosition?l.x:s.x-b.width-5+p,o+=b.height/4,t.visibleLabels[c].x=y,t.visibleLabels[c].y=o):0!==c&&c!==u||"None"===this.gauge.edgeLabelPlacement?(y=k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x,o=l.y,n="middle",r="",t.visibleLabels[c].x=y,t.visibleLabels[c].y=o):("Shift"===this.gauge.edgeLabelPlacement?(y=0===c?k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x+(t.isInversed?-t.visibleLabels[c].size.width/2:t.visibleLabels[c].size.width/2):k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x-(t.isInversed?-t.visibleLabels[c].size.width/2:t.visibleLabels[c].size.width/2),this.gauge.allowMargin&&c===u&&(!t.isInversed&&y-t.visibleLabels[c].size.width/2<t.visibleLabels[c-1].x+t.visibleLabels[c-1].size.width/2?y+=t.visibleLabels[c].size.width/2:t.isInversed&&y+t.visibleLabels[c].size.width/2>t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2&&(y-=t.visibleLabels[c].size.width/2))):"Trim"===this.gauge.edgeLabelPlacement?(y=k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x,c===u&&(this.gauge.allowMargin?t.isInversed&&y+t.visibleLabels[c].size.width/2>t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2?(m=t.visibleLabels[c].size.width-(y+t.visibleLabels[c].size.width/2-(t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2)+2),t.visibleLabels[c].text=x(m,t.visibleLabels[c].text,t.labelStyle.font)):!t.isInversed&&y-t.visibleLabels[c].size.width/2<t.visibleLabels[c-1].x+t.visibleLabels[c-1].size.width/2&&(m=t.visibleLabels[c].size.width-(t.visibleLabels[c-1].x+t.visibleLabels[c-1].size.width/2-(y-t.visibleLabels[c].size.width/2)+2),t.visibleLabels[c].text=x(m,t.visibleLabels[c].text,t.labelStyle.font)):!t.isInversed&&this.gauge.margin.right<=10?(f=.75*t.visibleLabels[c].size.width,t.visibleLabels[c].text=x(f,t.visibleLabels[c].text,t.labelStyle.font)):t.isInversed&&y+t.visibleLabels[c].size.width/2>t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2&&(f=t.visibleLabels[c].size.width-(y+t.visibleLabels[c].size.width/2-(t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2)+2),t.visibleLabels[c].text=x(f,t.visibleLabels[c].text,t.labelStyle.font)))):"Auto"===this.gauge.edgeLabelPlacement&&(this.gauge.allowMargin?(y=k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x,c===u&&t.isInversed&&y+t.visibleLabels[c].size.width/2>t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2&&(b=t.visibleLabels[c].size.width-(y+t.visibleLabels[c].size.width/2-(t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2)+2),t.visibleLabels[c].text=x(b,t.visibleLabels[c].text,t.labelStyle.font))):(y=c===u?k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x-(t.isInversed?-t.visibleLabels[c].size.width/2:t.visibleLabels[c].size.width/2):k(t.visibleLabels[c].value,t,this.gauge.orientation,h)*a.width+a.x+(t.isInversed?-t.visibleLabels[c].size.width/2:t.visibleLabels[c].size.width/2),c===u&&(!t.isInversed&&y-t.visibleLabels[c].size.width/2<t.visibleLabels[c-1].x+t.visibleLabels[c-1].size.width/2?(y+=t.visibleLabels[c].size.width/2,f=.75*t.visibleLabels[c].size.width,t.visibleLabels[c].text=x(f,t.visibleLabels[c].text,t.labelStyle.font)):t.isInversed&&y+t.visibleLabels[c].size.width/2>t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2&&(y-=t.visibleLabels[c].size.width/2,b=t.visibleLabels[c].size.width-(y+t.visibleLabels[c].size.width/2-(t.visibleLabels[c-1].x-t.visibleLabels[c-1].size.width/2)+2),t.visibleLabels[c].text=x(b,t.visibleLabels[c].text,t.labelStyle.font))))),o=l.y,t.visibleLabels[c].x=y,t.visibleLabels[c].y=o,n="middle",r=""),{size:t.labelStyle.font.size,color:t.labelStyle.font.color,fontFamily:t.labelStyle.font.fontFamily,fontWeight:t.labelStyle.font.fontWeight,fontStyle:t.labelStyle.font.fontStyle,opacity:t.labelStyle.font.opacity}),b=(b.fontFamily=b.fontFamily||this.gauge.themeStyle.labelFontFamily,b.fontStyle=b.fontStyle||this.gauge.themeStyle.labelStyle,b.fontWeight=b.fontWeight||this.gauge.themeStyle.labelWeight,Yt(new C(this.gauge.element.id+"_Axis_"+i+"_Label_"+c,y,o,n,t.visibleLabels[c].text,null,r),b,v,null,g));b.setAttribute("aria-label",t.visibleLabels[c].text),b.setAttribute("role","region")}this.gauge.allowLoadingAnimation&&g.classList.add(this.gauge.element.id+"animation"),e.appendChild(g)},A.prototype.drawPointers=function(t,e,i){for(var o,n,r,a=this.gauge.renderer.createGroup({id:this.gauge.element.id+"_PointersGroup_"+i}),l=0;l<t.pointers.length;l++)o=t.pointers[l],n="url(#"+this.gauge.element.id+"_AxisIndex_"+i+"__"+o.type+"ClipRect_"+l+")",T.isNullOrUndefined(o.bounds)||(r=this.gauge.renderer.createGroup({id:this.gauge.element.id+"_AxisIndex_"+i+"_"+o.type+"PointerGroup_"+l}),T.isNullOrUndefined(o.startValue)&&(o.startValue=t.visibleRange.min),!("Enable"===T.animationMode||0<o.animationDuration||this.gauge.allowLoadingAnimation)||this.gauge.isPropertyChange&&!o.isPointerAnimation||this.gauge.gaugeResized||(o.startValue=this.gauge.isPropertyChange?o.startValue:t.minimum,"Thermometer"===this.gauge.container.type&&0===o.startValue&&r.setAttribute("clip-path",n)),this["draw"+o.type+"Pointer"](t,i,o,l,r),a.appendChild(r));this.gauge.gradientCount=0,e.appendChild(a)},A.prototype.drawMarkerPointer=function(t,e,i,o,n){var r,a,l,s={},e=this.gauge.element.id+"_AxisIndex_"+e+"_"+i.type+"Pointer_"+o,o=(this.gauge.gradientModule&&(l=this.gauge.gradientModule.getGradientColorString(i)),w(e)&&0<w(e).childElementCount&&T.remove(w(e)),i.color||this.gauge.themeStyle.pointerColor),h=i.markerType;T.isNullOrUndefined(i.position)||"InvertedTriangle"!==i.markerType&&"Triangle"!==i.markerType||(h=("Outside"===i.position&&!t.opposedPosition||"Inside"===i.position&&t.opposedPosition||"Cross"===i.position)&&"Triangle"===i.markerType?"InvertedTriangle":("Inside"===i.position&&!t.opposedPosition||"Outside"===i.position&&t.opposedPosition)&&"InvertedTriangle"===i.markerType?"Triangle":i.markerType),r=new v(e,l||o,i.border.width,i.border.color,i.opacity,i.border.dashArray,null,"translate( 0, 0 )"),r=$t(i.bounds,h,new E(i.width,i.height),i.imageUrl,r,this.gauge.orientation,t,i),"Text"===i.markerType&&(a=new C(e,void 0,void 0,"start",i.text,null,"auto"),a=S(i.bounds,h,a,this.gauge.orientation,t,i),s={size:i.textStyle.size,fontFamily:i.textStyle.fontFamily||this.gauge.themeStyle.labelFontFamily,fontWeight:i.textStyle.fontWeight,fontStyle:i.textStyle.fontStyle}),e="Circle"===i.markerType?this.gauge.renderer.drawCircle(r):"Image"===i.markerType?this.gauge.renderer.drawImage(r):"Text"!==i.markerType||T.isNullOrUndefined(i.text)?this.gauge.renderer.drawPath(r):Yt(a,s,l||o,i.opacity,n),this.gauge.allowLoadingAnimation&&(e.style.visibility="hidden"),n.appendChild(e),!(0<i.animationDuration||"Enable"===T.animationMode)||this.gauge.allowLoadingAnimation&&!this.gauge.isPropertyChange||this.gauge.isPropertyChange&&!i.isPointerAnimation||i.startValue===i.currentValue||this.gauge.isPointerAnimationInProgress||(i.startValue=this.gauge.isPropertyChange?i.startValue:t.minimum,i.animationComplete=!1,this.performMarkerAnimation(e,t,i)),this.gauge.allowLoadingAnimation||0!==i.animationDuration||(i.startValue=i.currentValue),e.setAttribute("aria-label",i.description||"Pointer:"+Number(i.currentValue).toString()),e.setAttribute("role","region")},A.prototype.drawBarPointer=function(t,e,i,o,n){var r,a,l,s,h,d=new E(this.gauge.availableSize.width,this.gauge.availableSize.height),p=this.gauge.element.id+"_AxisIndex_"+e+"_"+i.type+"Pointer_"+o;this.gauge.gradientModule&&(h=this.gauge.gradientModule.getGradientColorString(i)),w(p)&&0<w(p).childElementCount&&T.remove(w(p)),"Normal"===this.gauge.container.type||0===this.gauge.container.width?(r=new Gt(p,h||i.color||this.gauge.themeStyle.pointerColor,i.border,i.opacity,i.bounds),s=i.bounds,a=this.gauge.renderer.drawRectangle(r)):(l=i.value>t.minimum||"Thermometer"===this.gauge.container.type?te(i.bounds,this.gauge.container.type,this.gauge.orientation,new E(i.bounds.width,i.bounds.height),"bar",this.gauge.container.width,t,i.roundedCornerRadius):"",l=new v(p,h||i.color||this.gauge.themeStyle.pointerColor,i.border.width,i.border.color,i.opacity,i.border.dashArray,l),s=Lt((a=this.gauge.renderer.drawPath(l)).cloneNode(!0),d,this.gauge.element)),w(p)&&0<w(p).childElementCount?(h=w(p).firstElementChild,"Normal"===this.gauge.container.type?(h.setAttribute("x",r.x+""),h.setAttribute("y",r.y+""),h.setAttribute("width",r.width+""),h.setAttribute("height",r.height+"")):h.setAttribute("d",l.d)):n.appendChild(a),a.setAttribute("aria-label",i.description||"Pointer:"+Number(i.currentValue).toString()),a.setAttribute("role","region"),this.gauge.allowLoadingAnimation&&(a.style.visibility="hidden"),!(0<i.animationDuration||this.gauge.allowLoadingAnimation||"Enable"===T.animationMode)||this.gauge.isPropertyChange&&!i.isPointerAnimation||i.startValue===i.currentValue||this.gauge.isPointerAnimationInProgress||(i.startValue=this.gauge.isPropertyChange?i.startValue:t.minimum,"Thermometer"===this.gauge.container.type&&0===i.startValue&&0<this.gauge.container.width&&(d=this.gauge.renderer.drawClipPath(new Gt(this.gauge.element.id+"_AxisIndex_"+e+"__"+i.type+"ClipRect_"+o,"transparent",{width:1,color:"Gray"},1,s)),n.appendChild(d)),this.gauge.allowLoadingAnimation&&!this.gauge.isPropertyChange)||(i.isPointerAnimation=!1,this.performBarAnimation(a,t,i)),0===i.animationDuration&&(i.startValue=i.currentValue)},A.prototype.pointerAnimation=function(t,e){if(!this.gauge.isPointerAnimationInProgress&&this.gauge.allowLoadingAnimation){this.gauge.isPointerAnimationInProgress=!0;for(var i=0;i<t.pointers.length;i++){var o,n=t.pointers[i];"Bar"===n.type?(o=w(this.gauge.element.id+"_AxisIndex_"+e+"_"+n.type+"Pointer_"+i))&&this.performBarAnimation(o,t,n):(o=w(this.gauge.element.id+"_AxisIndex_"+e+"_"+n.type+"Pointer_"+i))&&this.performMarkerAnimation(o,t,n)}}},A.prototype.drawRanges=function(t,e,i){var o,n=this.gauge.renderer.createGroup({id:this.gauge.element.id+"_RangesGroup_"+i});this.gauge.allowLoadingAnimation&&n.classList.add(this.gauge.element.id+"animation");for(var r=0;r<t.ranges.length;r++)o=t.ranges[r],T.isNullOrUndefined(o.path)||(o=new v(this.gauge.element.id+"_AxisIndex_"+i+"_Range_"+r,o.interior,o.start!==o.end?o.border.width:0,o.border.color,1,o.border.dashArray,o.path),n.appendChild(this.gauge.renderer.drawPath(o)));e.appendChild(n)},A.prototype.updateTextPointer=function(t,e,i){var o=new C(t,void 0,void 0,"start",e.text,null,"auto"),o=S(e.bounds,"Text",o,this.gauge.orientation,i,e),i=document.getElementById(t);i.setAttribute("x",o.x.toString()),i.setAttribute("y",o.y.toString()),i.textContent=e.text},A.prototype.destroy=function(){this.htmlObject=null,this.axisObject=null,this.axisElements=[],this.gauge=null};var ae,le,se=A;function A(t){return le.call(this,t)||this}de.prototype.renderAnnotationElements=function(i){var o=this,t=i.element.id+"_Secondary_Element",n=T.createElement("div",{id:i.element.id+"_AnnotationsGroup"});n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.style.opacity=i.allowLoadingAnimation?"0":"1",i.splitUpCount=i.allowLoadingAnimation&&0<i.annotations.length?i.splitUpCount+1:i.splitUpCount,i.annotations.map(function(t,e){null!==t.content&&o.createAnnotationTemplate(n,e,i)}),0<n.childElementCount&&!T.isNullOrUndefined(w(t))&&w(t).appendChild(n),i.renderReactTemplates()},de.prototype.createAnnotationTemplate=function(h,d,p){var u,g,c,m,y=!1,f=p.annotations[d],b=T.createElement("div",{id:p.element.id+"_Annotation_"+d}),t=(b.style.cssText="position: absolute; z-index:"+f.zIndex+";",{size:f.font.size,color:f.font.color,fontFamily:f.font.fontFamily,fontWeight:f.font.fontWeight,fontStyle:f.font.fontStyle,opacity:f.font.opacity}),v={cancel:!1,name:ft,content:f.content,annotation:f,textStyle:t};v.textStyle.color=t.color||p.themeStyle.labelColor,p.trigger(ft,v,function(){if(!v.cancel){if((m=zt(v.content,p))&&m(p,p,v.content,p.element.id+"_ContentTemplate"+d).length)for(var t=(c=Array.prototype.slice.call(m(p,p,v.content,p.element.id+"_ContentTemplate"+d))).length,e=0;e<t;e++)b.appendChild(c[e]);else{var i=T.createElement("div",{innerHTML:T.isNullOrUndefined(v.content)?null:v.content.toString()});i.style.cssText=Ot(v.textStyle),b.appendChild(i)}var o=Rt(b.cloneNode(!0),p.element);if(T.isNullOrUndefined(f.axisValue)){var i=p.element.getBoundingClientRect(),n=p.svgObject.getBoundingClientRect();switch(y=!0,u=Math.abs(n.left-i.left),g=Math.abs(n.top-i.top),u="None"===f.horizontalAlignment?u+f.x:u,g="None"===f.verticalAlignment?g+f.y:g,f.verticalAlignment){case"Near":g+=f.y;break;case"Center":g=g+f.y+(n.height/2-o.height/2);break;case"Far":g=g+n.height+f.y-o.height}switch(f.horizontalAlignment){case"Near":u+=f.x;break;case"Center":u=u+f.x+(n.width/2-o.width/2);break;case"Far":u=u+n.width+f.x-o.width}}else{m=T.isNullOrUndefined(f.axisIndex)?0:f.axisIndex;var r,i=(m=p.axes[m]).visibleRange,a=(y=f.axisValue>=i.min&&f.axisValue<=i.max,m.lineBounds),l=ee(p.element),s=w(p.element.id+"_Axis_Collections");T.isNullOrUndefined(s)||(s=s.getAttribute("transform").split("(")[1].split(")")[0],r=parseInt(s.split(",")[0],10),s=parseInt(s.split(",")[1],10),"Vertical"===p.orientation?(u=a.x+parseFloat(f.x.toString())+r-l,g=k(parseFloat(f.axisValue.toString()),m,p.orientation,i)*a.height+a.y,g+=parseFloat(f.y.toString())):(u=k(parseFloat(f.axisValue.toString()),m,p.orientation,i)*a.width+a.x-l,u+=parseFloat(f.x.toString()),g=a.y+parseFloat(f.y.toString())+s),u-=o.width/2,g-=o.height/2)}b.style.left=u+"px",b.style.top=g+"px",y&&h.appendChild(b)}})},de.prototype.annotationAnimate=function(e,t){var i;"0"===e.style.opacity&&(i=0,new T.Animation({}).animate(e,{duration:0===t.animationDuration&&"Enable"===T.animationMode?1e3:t.allowLoadingAnimation&&0<t.animationDuration?t.animationDuration/t.splitUpCount:0,progress:function(t){t.timeStamp>t.delay&&(i=(t.timeStamp-t.delay)/t.duration,e.style.opacity=i)},end:function(){e.style.opacity=1,t.allowLoadingAnimation=!1,t.isOverAllAnimationComplete=!0}}))},de.prototype.getModuleName=function(){return"Annotations"},de.prototype.destroy=function(){};var he=de;function de(){}O.prototype.renderTooltip=function(t){i=(-1!==t.type.indexOf("touch")?(this.isTouch=!0,e=t.changedTouches[0].pageX,t.changedTouches[0]):(this.isTouch="touch"===t.pointerType,e=t.pageX,t)).pageY;var e,i,o,n,r,a,l,s,h,d,p=t.target;-1<p.id.indexOf("Pointer")&&-1<this.gauge.tooltip.type.indexOf("Pointer")?(this.pointerElement=p,r=this.gauge.element.getBoundingClientRect(),a=F(this.pointerElement,this.gauge),this.currentAxis=a.axis,this.axisIndex=a.axisIndex,this.currentPointer=a.pointer,h=this.tooltip.format&&null!==this.tooltip.format.match("{value}"),(l={size:this.tooltip.textStyle.size,color:this.tooltip.textStyle.color,fontFamily:this.tooltip.textStyle.fontFamily,fontWeight:this.tooltip.textStyle.fontWeight,fontStyle:this.tooltip.textStyle.fontStyle,opacity:this.tooltip.textStyle.opacity}).color=l.color||this.gauge.themeStyle.tooltipFontColor,l.size=l.size||this.gauge.themeStyle.tooltipFontSize,l.fontFamily=l.fontFamily||this.gauge.themeStyle.fontFamily,l.fontWeight=l.fontWeight||this.gauge.themeStyle.labelWeight,l.opacity=l.opacity||this.gauge.themeStyle.tooltipTextOpacity,n=h?Bt(this.tooltip.format,{value:this.currentPointer.currentValue},this.gauge):It(this.currentPointer.currentValue,this.gauge).toString(),o=this.tooltipCreate(o),this.tooltipRender(n,p,o,t,r,e,i,l),this.gauge.renderReactTemplates()):-1<p.id.indexOf("Range")&&-1<this.gauge.tooltip.type.indexOf("Range")?(this.pointerElement=p,r=this.gauge.element.getBoundingClientRect(),a=F(this.pointerElement,this.gauge),this.currentAxis=a.axis,this.axisIndex=a.axisIndex,l=Number(p.id.charAt(p.id.length-1)),this.currentRange=this.currentAxis.ranges[l],a=this.currentRange.start.toString(),l=this.currentRange.end.toString(),h=(s=this.gauge.tooltip.rangeSettings.format||this.currentAxis.labelStyle.format)&&(null!==s.match("{end}")||null!==s.match("{start}")),(d={size:this.tooltip.rangeSettings.textStyle.size,color:this.tooltip.rangeSettings.textStyle.color,fontFamily:this.tooltip.rangeSettings.textStyle.fontFamily,fontWeight:this.tooltip.rangeSettings.textStyle.fontWeight,fontStyle:this.tooltip.rangeSettings.textStyle.fontStyle,opacity:this.tooltip.rangeSettings.textStyle.opacity}).color=d.color||this.gauge.themeStyle.tooltipFontColor,d.size=d.size||this.gauge.themeStyle.tooltipFontSize,d.fontFamily=d.fontFamily||this.gauge.themeStyle.fontFamily,d.fontWeight=d.fontWeight||this.gauge.themeStyle.labelWeight,d.opacity=d.opacity||this.gauge.themeStyle.tooltipTextOpacity,n=h?s.replace(/{start}/g,a).replace(/{end}/g,l):"Start : "+a+"<br>End : "+l,o=this.tooltipCreate(o),this.tooltipRender(n,p,o,t,r,e,i,d),this.gauge.renderReactTemplates()):p.id===this.element.id+"_LinearGaugeTitle"&&-1<p.textContent.indexOf("...")?ie(this.gauge.title,this.gauge):(oe(),this.gauge.clearTemplate())},O.prototype.tooltipRender=function(t,i,o,e,n,r,a,l){var s=this,h=this.getTooltipLocation(),d=((this.tooltip.rangeSettings.showAtMousePosition&&-1<i.id.indexOf("Range")||this.tooltip.showAtMousePosition&&-1<i.id.indexOf("Pointer"))&&(h=Qt(r,a,this.gauge.svgObject)),{name:yt,cancel:!1,gauge:this.gauge,event:e,location:h,content:t,tooltip:this.tooltip,axis:this.currentAxis,pointer:this.currentPointer}),p=this.getTooltipPosition();h.y+=this.tooltip.rangeSettings.template&&"Top"===p||this.tooltip.template&&"Top"===p?20:0,h.x+=this.tooltip.rangeSettings.template&&"Right"===p||this.tooltip.template&&"Right"===p?20:0,this.gauge.trigger(yt,d,function(){var t,e=(-1<i.id.indexOf("Range")?d.tooltip.rangeSettings:d.tooltip).template;null!==e&&1===Object.keys(e).length&&"function"!=typeof e&&(e=e[Object.keys(e)[0]]),d.cancel||(t=(-1<i.id.indexOf("Range")?s.tooltip.rangeSettings:s.tooltip).fill,s.svgTooltip=s.svgCreate(s.svgTooltip,d,s.gauge,n,t,e,p,h,i,l),s.svgTooltip.opacity=s.gauge.themeStyle.tooltipFillOpacity||s.svgTooltip.opacity,s.svgTooltip.appendTo(o))})},O.prototype.tooltipCreate=function(t){return document.getElementById(this.tooltipId)?t=document.getElementById(this.tooltipId):((t=T.createElement("div",{id:this.tooltipId,className:"EJ2-LinearGauge-Tooltip"})).style.cssText="position: absolute;pointer-events:none;z-index: 3;",document.getElementById(this.gauge.element.id+"_Secondary_Element").appendChild(t)),t},O.prototype.svgCreate=function(t,e,i,o,n,r,a,l,s,h){s=(-1<s.id.indexOf("Range")?e.tooltip.rangeSettings:e.tooltip).border,h={color:e.tooltip.textStyle.color||h.color,fontFamily:e.tooltip.textStyle.fontFamily||h.fontFamily,fontStyle:e.tooltip.textStyle.fontStyle||h.fontStyle,fontWeight:e.tooltip.textStyle.fontWeight||h.fontWeight,opacity:e.tooltip.textStyle.opacity||h.opacity,size:e.tooltip.textStyle.size||h.size},s={color:s.color||this.gauge.themeStyle.tooltipBorderColor||"transparent",width:s.width||this.gauge.themeStyle.tooltipBorderWidth||0,dashArray:s.dashArray};return t=new d.Tooltip({enable:!0,header:"",data:{value:e.content},template:r,content:[T.SanitizeHtmlHelper.sanitize(e.content)],shapes:[],location:e.location,palette:[],inverted:!("Horizontal"===e.gauge.orientation),enableAnimation:e.tooltip.enableAnimation,fill:n||i.themeStyle.tooltipFillColor,availableSize:i.availableSize,areaBounds:new L("Vertical"===this.gauge.orientation?l.x:o.left-this.element.getBoundingClientRect().left,"Vertical"===this.gauge.orientation||"Bottom"===a?o.top:l.y,"Right"===a?Math.abs(o.left-l.x):o.width,o.height),textStyle:h,border:s,theme:e.gauge.theme,enableShadow:!0}),(i.isVue||i.isVue3)&&(t.controlInstance=i),t},O.prototype.getTooltipPosition=function(){var t="Vertical"===this.gauge.orientation?this.currentAxis.opposedPosition?"Right":"Left":this.currentAxis.opposedPosition?"Top":"Bottom";return t},O.prototype.getTooltipLocation=function(){var t,e=this.gauge.element.id+"_AxisLine_"+this.axisIndex,i=this.gauge.element.id+"_MajorTicksLine_"+this.axisIndex,e=w(e)?(t=(o=w(e).getBoundingClientRect()).left,o.top):(o=w(i).getBoundingClientRect(),t=this.currentAxis.opposedPosition?o.left:o.left+o.width,this.currentAxis.opposedPosition?o.top:o.top+o.height),i=this.pointerElement.getBoundingClientRect(),o=this.gauge.element.getBoundingClientRect(),n=i.left-o.left,r=i.top-o.top,a=i.height,i=i.width,l=(-1<this.pointerElement.id.indexOf("Range")?this.tooltip.rangeSettings:this.tooltip).position;return"Vertical"===this.gauge.orientation?(n=t-o.left,r=-1<this.pointerElement.id.indexOf("Range")||-1<this.pointerElement.id.indexOf("BarPointer")?this.currentAxis.isInversed?"End"===l||"Start"===l?r+a:r+a/2:"End"===l?r:"Start"===l?r+a:r+a/2:"Marker"===this.currentPointer.type?r+a/2:this.currentAxis.isInversed?r+a:r):(r=e-o.top,n=-1<this.pointerElement.id.indexOf("Range")||-1<this.pointerElement.id.indexOf("BarPointer")?this.currentAxis.isInversed?"End"===l?n:"Start"===l?n+i:n+i/2:"End"===l?n+i:"Start"===l?n:n+i/2:"Marker"===this.currentPointer.type?n+i/2:this.currentAxis.isInversed?n:n+i),new Vt(n,r)},O.prototype.mouseUpHandler=function(t){oe(),this.renderTooltip(t),clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(oe.bind(this),2e3)},O.prototype.addEventListener=function(){this.gauge.isDestroyed||(this.gauge.on(T.Browser.touchMoveEvent,this.renderTooltip,this),this.gauge.on(T.Browser.touchEndEvent,this.mouseUpHandler,this))},O.prototype.removeEventListener=function(){this.gauge.isDestroyed||(this.gauge.off(T.Browser.touchMoveEvent,this.renderTooltip),this.gauge.off(T.Browser.touchEndEvent,this.mouseUpHandler))},O.prototype.getModuleName=function(){return"Tooltip"},O.prototype.destroy=function(){this.element=null,this.currentAxis=null,this.currentPointer=null,this.currentRange=null,T.isNullOrUndefined(this.svgTooltip)||(this.svgTooltip.destroy(),this.svgTooltip.controlInstance=null,b(this.tooltipId)),this.svgTooltip=null,this.pointerElement=null,this.tooltip=null,this.removeEventListener(),this.gauge=null};var pe=O;function O(t){this.gauge=t,this.element=t.element,this.tooltip=t.tooltip,this.tooltipId=this.gauge.element.id+"_LinearGauge_Tooltip",this.addEventListener()}ue=function(t,e){return(ue=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};var ue,ge,h=function(t,e){function i(){this.constructor=t}ue(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},B=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;0<=l;l--)(n=t[l])&&(a=(r<3?n(a):3<r?n(e,i,a):n(e,i))||a);return 3<r&&a&&Object.defineProperty(e,i,a),a},ce=(ge=T.ChildProperty,h(me,ge),B([T.Property("#000000")],me.prototype,"color",void 0),B([T.Property(1)],me.prototype,"opacity",void 0),B([T.Property("0%")],me.prototype,"offset",void 0),B([T.Property("")],me.prototype,"style",void 0),me);function me(){return null!==ge&&ge.apply(this,arguments)||this}ye=T.ChildProperty,h(be,ye),B([T.Property("0%")],be.prototype,"x",void 0),B([T.Property("0%")],be.prototype,"y",void 0);var ye,fe=be;function be(){return null!==ye&&ye.apply(this,arguments)||this}ve=T.ChildProperty,h(we,ve),B([T.Property("0%")],we.prototype,"startValue",void 0),B([T.Property("100%")],we.prototype,"endValue",void 0),B([T.Collection([{color:"#000000",opacity:1,offset:"0%",style:""}],ce)],we.prototype,"colorStop",void 0);var ve,xe=we;function we(){return null!==ve&&ve.apply(this,arguments)||this}Ce=T.ChildProperty,h(Fe,Ce),B([T.Property("0%")],Fe.prototype,"radius",void 0),B([T.Complex({x:"0%",y:"0%"},fe)],Fe.prototype,"outerPosition",void 0),B([T.Complex({x:"0%",y:"0%"},fe)],Fe.prototype,"innerPosition",void 0),B([T.Collection([{color:"#000000",opacity:1,offset:"0%",style:""}],ce)],Fe.prototype,"colorStop",void 0);var Ce,h=Fe;function Fe(){return null!==Ce&&Ce.apply(this,arguments)||this}I.prototype.getLinearGradientColor=function(t){var e=new d.SvgRenderer(""),i=t.linearGradient.colorStop,i=this.getGradientColor(i),o="_"+this.gauge.svgObject.id+"_"+this.gauge.gradientCount+"_linearGradient",t={id:o,x1:(-1===t.linearGradient.startValue.indexOf("%")?t.linearGradient.startValue:parseFloat(t.linearGradient.startValue).toString())+"%",x2:(-1===t.linearGradient.endValue.indexOf("%")?t.linearGradient.endValue:parseFloat(t.linearGradient.endValue).toString())+"%",y1:"0%",y2:"0%"},e=e.drawGradient("linearGradient",t,i);return this.gauge.svgObject.appendChild(e),"url(#"+o+")"},I.prototype.getRadialGradientColor=function(t){var e=new d.SvgRenderer(""),i=t.radialGradient.colorStop,i=this.getGradientColor(i),o="_"+this.gauge.svgObject.id+"_"+this.gauge.gradientCount+"_radialGradient",t={id:o,r:T.isNullOrUndefined(t.radialGradient.radius)?"0%":(-1===t.radialGradient.radius.indexOf("%")?t.radialGradient.radius:parseFloat(t.radialGradient.radius).toString())+"%",cx:null==t.radialGradient.outerPosition?"0%":(-1===t.radialGradient.outerPosition.x.indexOf("%")?t.radialGradient.outerPosition.x:parseFloat(t.radialGradient.outerPosition.x).toString())+"%",cy:null==t.radialGradient.outerPosition?"0%":(-1===t.radialGradient.outerPosition.y.indexOf("%")?t.radialGradient.outerPosition.y:parseFloat(t.radialGradient.outerPosition.y).toString())+"%",fx:null==t.radialGradient.innerPosition?"0%":(-1===t.radialGradient.innerPosition.x.indexOf("%")?t.radialGradient.innerPosition.y:parseFloat(t.radialGradient.innerPosition.x).toString())+"%",fy:null==t.radialGradient.innerPosition?"0%":(-1===t.radialGradient.innerPosition.y.indexOf("%")?t.radialGradient.innerPosition.y:parseFloat(t.radialGradient.innerPosition.y).toString())+"%"},e=e.drawGradient("radialGradient",t,i);return this.gauge.svgObject.appendChild(e),"url(#"+o+")"},I.prototype.getGradientColor=function(t){for(var e=[],i=T.isNullOrUndefined(t)?0:t.length,o=0;o<i;o++){var n=t[o],n={color:n.color,colorStop:n.offset,opacity:n.opacity?n.opacity.toString():"1",style:n.style};e.push(n)}return e},I.prototype.getGradientColorString=function(t){return t.linearGradient||t.radialGradient?(t=t.linearGradient?this.getLinearGradientColor(t):this.getRadialGradientColor(t),this.gauge.gradientCount+=1,t):null},I.prototype.getModuleName=function(){return"Gradient"},I.prototype.destroy=function(){this.gauge=null};var Se=I;function I(t){this.gauge=t}Pe=function(t,e){return(Pe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}))(t,e)};var Pe,Ae,B=function(t,e){function i(){this.constructor=t}Pe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)},z=function(t,e,i,o){var n,r=arguments.length,a=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;0<=l;l--)(n=t[l])&&(a=(r<3?n(a):3<r?n(e,i,a):n(e,i))||a);return 3<r&&a&&Object.defineProperty(e,i,a),a},B=(Ae=T.Component,B(R,Ae),R.prototype.preRender=function(){this.unWireEvents(),this.isPointerAnimationInProgress=!1,this.trigger("load",{gauge:this}),this.initPrivateVariable(),this.setCulture(),this.createSvg(),this.wireEvents()},R.prototype.setTheme=function(){this.themeStyle=function(t){var e;switch(t.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":e={backgroundColor:"#333232",titleFontColor:"#ffffff",titleFontSize:"15px",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#000000",tooltipFontSize:"13px",labelColor:"#DADADA",lineColor:"#C8C8C8",majorTickColor:"#C8C8C8",minorTickColor:"#9A9A9A",pointerColor:"#9A9A9A",titleFontStyle:"Normal",titleFontWeight:"Normal",labelStyle:"Normal",labelWeight:"Normal",containerBorderColor:"#bfbfbf",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI"};break;case"highcontrast":e={backgroundColor:"#000000",titleFontColor:"#FFFFFF",titleFontSize:"15px",tooltipFillColor:"#ffffff",tooltipFontColor:"#000000",tooltipFontSize:"13px",labelColor:"#FFFFFF",lineColor:"#FFFFFF",majorTickColor:"#FFFFFF",minorTickColor:"#FFFFFF",pointerColor:"#FFFFFF",titleFontStyle:"Normal",titleFontWeight:"Normal",labelStyle:"Normal",labelWeight:"Normal",containerBorderColor:"#bfbfbf",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI"};break;case"bootstrap4":e={backgroundColor:"#FFFFFF",titleFontColor:"#212529",titleFontSize:"15px",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFontSize:"13px",labelColor:"#212529",lineColor:"#ADB5BD",majorTickColor:"#ADB5BD",minorTickColor:"#CED4DA",pointerColor:"#6C757D",fontFamily:"HelveticaNeue-Medium",fontSize:"16px",labelFontFamily:"HelveticaNeue",tooltipFillOpacity:1,tooltipTextOpacity:.9,containerBackground:"#F8F9FA",titleFontStyle:"Normal",titleFontWeight:"Normal",labelStyle:"Normal",labelWeight:"Normal",containerBorderColor:"#bfbfbf"};break;case"tailwind":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#374151",titleFontSize:"15px",tooltipFillColor:"#111827",tooltipFontColor:"#F9FAFB",tooltipFontSize:"13px",labelColor:"#6B7280",lineColor:"#E5E7EB",majorTickColor:"#9CA3AF",minorTickColor:"#9CA3AF",pointerColor:"#1F2937",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:.9,containerBackground:"rgba(255,255,255, 0.0)",titleFontStyle:"Normal",titleFontWeight:"500",labelStyle:"Normal",labelWeight:"Normal",containerBorderColor:"#E5E7EB"};break;case"tailwinddark":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#D1D5DB",titleFontSize:"15px",tooltipFillColor:"#F9FAFB",tooltipFontColor:"#1F2937",tooltipFontSize:"13px",labelColor:"#9CA3AF",lineColor:"#374151",majorTickColor:"#6B7280",minorTickColor:"#6B7280",pointerColor:"#9CA3AF",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:.9,containerBackground:"rgba(255,255,255, 0.0)",titleFontStyle:"Normal",titleFontWeight:"500",labelStyle:"Normal",labelWeight:"Normal",containerBorderColor:"#4b5563"};break;case"tailwind3":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#111827",titleFontSize:"14px",tooltipFillColor:"#111827",tooltipFontColor:"#F9FAFB",tooltipFontSize:"12px",labelColor:"#4B5563",lineColor:"#E5E7EB",majorTickColor:"#D1D5DB",minorTickColor:"#D1D5DB",pointerColor:"#1F2937",fontFamily:"Inter",fontSize:"14px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,containerBackground:"#E5E7EB",titleFontStyle:"Normal",titleFontWeight:"600",labelStyle:"Normal",labelWeight:"400",containerBorderColor:"#E5E7EB"};break;case"tailwind3dark":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",titleFontSize:"14px",tooltipFillColor:"#F9FAFB",tooltipFontColor:"#1F2937",tooltipFontSize:"12px",labelColor:"#D1D5DB",lineColor:"#282F3C",majorTickColor:"#374151",minorTickColor:"#374151",pointerColor:"#6B7280",fontFamily:"Inter",fontSize:"12px",labelFontFamily:"Inter",tooltipFillOpacity:1,tooltipTextOpacity:1,containerBackground:"#282F3C",titleFontStyle:"Normal",titleFontWeight:"600",labelStyle:"Normal",labelWeight:"400",containerBorderColor:"#282F3C"};break;case"bootstrap5":e={backgroundColor:"transparent",titleFontColor:"#212529",titleFontSize:"14px",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFontSize:"12px",labelColor:"#212529",lineColor:"#E9ECEF",majorTickColor:"#CED4DA",minorTickColor:"#CED4DA",pointerColor:"#343A40",fontSize:"14px",titleFontStyle:"normal",titleFontWeight:"400",labelStyle:"normal",labelWeight:"400",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI",tooltipFillOpacity:.9,containerBackground:"#E9ECEF",containerBorderColor:"#E9ECEF"};break;case"bootstrap5dark":e={backgroundColor:"transparent",titleFontColor:"#DEE2E6",titleFontSize:"14px",titleFontStyle:"normal",titleFontWeight:"400",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#212529",tooltipFontSize:"12px",labelColor:"#DEE2E6",labelStyle:"normal",labelWeight:"400",labelFontFamily:"Segoe UI",lineColor:"#343A40",majorTickColor:"#6C757D",minorTickColor:"#6C757D",pointerColor:"#ADB5BD",fontSize:"14px",fontFamily:"Segoe UI",tooltipFillOpacity:.9,containerBackground:"#343A40",containerBorderColor:"#343A40"};break;case"fluent":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",titleFontSize:"15px",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#323130",tooltipFontSize:"13px",labelColor:"#3B3A39",lineColor:"#EDEBE9",majorTickColor:"#C8C6C4",minorTickColor:"#C8C6C4",pointerColor:"#A19F9D",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,containerBackground:"rgba(255,255,255, 0.0)",titleFontStyle:"normal",titleFontWeight:"600",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#EDEBE9"};break;case"fluentdark":e={backgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",titleFontSize:"15px",tooltipFillColor:"#252423",tooltipFontColor:"#F3F2F1",tooltipFontSize:"13px",labelColor:"#C8C6C4",lineColor:"#292827",majorTickColor:"#484644",minorTickColor:"#484644",pointerColor:"#797775",fontFamily:"Segoe UI",fontSize:"14px",labelFontFamily:"Segoe UI",tooltipFillOpacity:1,tooltipTextOpacity:1,containerBackground:"rgba(255,255,255, 0.0)",titleFontStyle:"normal",titleFontWeight:"600",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#292827"};break;case"material3":e={backgroundColor:"transparent",titleFontColor:"#1C1B1F",titleFontSize:"16px",tooltipFillColor:"#313033",tooltipFontColor:"#F4EFF4",tooltipFontSize:"14px",labelColor:" #1E192B",lineColor:"#C4C7C5",majorTickColor:"#C4C7C5",minorTickColor:"#C4C7C5",pointerColor:"#49454E",fontFamily:"Roboto",fontSize:"12px",labelFontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,containerBackground:"#E7E0EC",titleFontStyle:"normal",titleFontWeight:"500",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#E7E0EC"};break;case"material3dark":e={backgroundColor:"transparent",titleFontColor:"#E6E1E5",titleFontSize:"16px",tooltipFillColor:"#E6E1E5",tooltipFontColor:"#313033",tooltipFontSize:"14px",labelColor:"#E6E1E5",lineColor:"#938F99",majorTickColor:"#938F99",minorTickColor:"#938F99",pointerColor:"#CAC4D0",fontFamily:"Roboto",fontSize:"12px",labelFontFamily:"Roboto",tooltipFillOpacity:1,tooltipTextOpacity:1,containerBackground:"#49454F",titleFontStyle:"normal",titleFontWeight:"500",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#49454F"};break;case"fluent2":e={backgroundColor:"transparent",titleFontColor:"#242424",titleFontSize:"14px",tooltipFillColor:"#FFFFFF",tooltipFontColor:"#242424",tooltipFontSize:"12px",labelColor:"#616161",lineColor:"#EDEBE9",majorTickColor:"#C8C6C4",minorTickColor:"#C8C6C4",pointerColor:"#A19F9D",fontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,titleFontStyle:"normal",titleFontWeight:"600",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#EDEBE9",containerBackground:"#EDEBE9",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI"};break;case"fluent2dark":e={backgroundColor:"transparent",titleFontColor:"#FFFFFF",titleFontSize:"14px",tooltipFillColor:"#292929",tooltipFontColor:"#FFFFFF",tooltipFontSize:"12px",labelColor:"#ADADAD",lineColor:"#292827",majorTickColor:"#484644",minorTickColor:"#484644",pointerColor:"#8A8886",fontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,titleFontStyle:"normal",titleFontWeight:"600",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#292827",containerBackground:"#292827",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI"};break;case"fluent2highcontrast":e={backgroundColor:"transparent",titleFontColor:"#FFFFFF",titleFontSize:"14px",tooltipFillColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFontSize:"12px",labelColor:"#FFFFFF",lineColor:"#292827",majorTickColor:"#484644",minorTickColor:"#484644",pointerColor:"#8A8886",fontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,titleFontStyle:"normal",titleFontWeight:"600",labelStyle:"normal",labelWeight:"400",containerBorderColor:"#292827",containerBackground:"#292827",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI",tooltipBorderColor:"#FFF",tooltipBorderWidth:1};break;default:e={backgroundColor:"#FFFFFF",titleFontColor:"#424242",titleFontSize:"15px",tooltipFillColor:"#FFFFF",tooltipFontColor:"#FFFFFF",tooltipFontSize:"13px",labelColor:"#686868",lineColor:"#a6a6a6",majorTickColor:"#a6a6a6",minorTickColor:"#a6a6a6",pointerColor:"#a6a6a6",containerBackground:"#e0e0e0",titleFontStyle:"Normal",titleFontWeight:"Normal",labelStyle:"Normal",labelWeight:"Normal",containerBorderColor:"#bfbfbf",fontFamily:"Segoe UI",labelFontFamily:"Segoe UI"}}return e}(this.theme)},R.prototype.initPrivateVariable=function(){var t;""===this.element.id&&(t=document.getElementsByClassName("e-lineargauge").length,this.element.id="lineargauge_control_"+t),this.renderer=new d.SvgRenderer(this.element.id),this.gaugeAxisLayoutPanel=new ne(this),this.axisRenderer=new se(this)},R.prototype.setCulture=function(){this.intl=new T.Internationalization},R.prototype.createSvg=function(){this.removeSvg(),this.calculateSize(),T.isNullOrUndefined(this.renderer)&&(this.renderer=new d.SvgRenderer(this.element.id)),T.isNullOrUndefined(this.gaugeAxisLayoutPanel)&&(this.gaugeAxisLayoutPanel=new ne(this)),T.isNullOrUndefined(this.axisRenderer)&&(this.axisRenderer=new se(this)),this.svgObject=this.renderer.createSvg({id:this.element.id+"_svg",width:this.availableSize.width,height:this.availableSize.height})},R.prototype.removeSvg=function(){b(this.element.id+"_Secondary_Element"),T.isNullOrUndefined(this.svgObject)||T.isNullOrUndefined(this.svgObject.parentNode)||T.remove(this.svgObject),this.clearTemplate()},R.prototype.renderAnimation=function(){var t,e=this;this.allowLoadingAnimation&&(t=document.getElementById(this.element.id+"_RangesGroup_0"),this.axisElementAnimate(t),this.styleRemove&&clearTimeout(this.styleRemove),this.styleRemove=setTimeout(function(){var t=document.querySelectorAll("style."+e.element.id+"animation");0<t.length&&t[0].remove()},0===this.animationDuration&&"Enable"===T.animationMode?1e3:this.animationDuration))},R.prototype.axisElementAnimate=function(t){var e,i=this,o=document.querySelectorAll("style."+this.element.id+"animation");new T.Animation({}).animate(t,{duration:0===this.animationDuration&&"Enable"===T.animationMode?1e3:0<this.animationDuration?this.animationDuration/this.splitUpCount:0,progress:function(t){t.timeStamp>t.delay&&(e=(t.timeStamp-t.delay)/t.duration,o[0].style.cssText="opacity: "+e+";")},end:function(){T.isNullOrUndefined(o)||0===o.length||(o[0].style.cssText="opacity: 1;");for(var t=0;t<i.axes.length;t++)i.axisRenderer.pointerAnimation(i.axes[t],t),i.axes.length-1==0&&0===i.axes[t].pointers.length&&(i.isOverAllAnimationComplete=!0)}})},R.prototype.calculateSize=function(){T.isNullOrUndefined(this.height)||(this.element.style.height=this.height),T.isNullOrUndefined(this.width)||(this.element.style.width=this.width);var t=Tt(this.width,this.element.offsetWidth)||this.element.offsetWidth||600,e=Tt(this.height,this.element.offsetHeight)||this.element.offsetHeight||450;this.availableSize=new E(t,e)},R.prototype.renderElements=function(){this.setTheme(),this.renderGaugeElements(),this.calculateBounds(),this.renderAxisElements(),this.renderAnimation(),this.renderComplete()},R.prototype.render=function(){var t;this.isPropertyChange=!1,this.isCheckPointerDrag=!1,this.allowLoadingAnimation=(0===this.animationDuration&&"Enable"===T.animationMode||0<this.animationDuration)&&!this.isOverAllAnimationComplete,this.allowLoadingAnimation&&0===document.getElementsByClassName(this.element.id+"animation").length&&((t=T.createElement("style",{className:this.element.id+"animation"})).style.cssText="."+this.element.id+"animation{opacity: 0}",document.body.appendChild(t)),this.renderElements()},R.prototype.renderGaugeElements=function(){this.appendSecondaryElement(),this.renderBorder(),this.renderTitle(),this.renderContainer()},R.prototype.appendSecondaryElement=function(){var t;T.isNullOrUndefined(w(this.element.id+"_Secondary_Element"))&&((t=T.createElement("div")).id=this.element.id+"_Secondary_Element",t.style.position="relative",this.element.appendChild(t))},R.prototype.calculateBounds=function(){this.gaugeAxisLayoutPanel.calculateAxesBounds()},R.prototype.renderAxisElements=function(){this.axisRenderer.renderAxes(),this.element.appendChild(this.svgObject),this.annotationsModule&&this.annotationsModule.renderAnnotationElements(this),this.isCheckPointerDrag||this.trigger("loaded",{gauge:this}),b("gauge-measuretext")},R.prototype.renderBorder=function(){var t=this.border.width;(0<t||this.background||this.themeStyle.backgroundColor)&&(t=new Gt(this.element.id+"_LinearGaugeBorder",this.background||this.themeStyle.backgroundColor,this.border,1,new L(t/2,t/2,this.availableSize.width-t,this.availableSize.height-t)),this.svgObject.appendChild(this.renderer.drawRectangle(t)))},R.prototype.renderTitle=function(){var t=this.availableSize.width-this.margin.left-this.margin.right,e={size:this.titleStyle.size||this.themeStyle.titleFontSize,color:this.titleStyle.color,fontFamily:this.titleStyle.fontFamily||this.themeStyle.fontFamily,fontWeight:this.titleStyle.fontWeight||this.themeStyle.titleFontWeight,fontStyle:this.titleStyle.fontStyle||this.themeStyle.titleFontStyle,opacity:this.titleStyle.opacity},i=x(t,this.title,e),o=f(i,e),i=new C(this.element.id+"_LinearGaugeTitle",this.availableSize.width/2,this.margin.top+o.height/2,"middle",i),o={x:i.x-o.width/2,y:i.y,width:o.width,height:o.height},n=this.margin.left,o=o.y,r=this.availableSize.height-o-this.margin.bottom;this.actualRect={x:n,y:o,width:t,height:r},this.title&&((n=Yt(i,e,e.color||this.themeStyle.titleFontColor,null,this.svgObject)).setAttribute("aria-label",this.description||this.title),n.setAttribute("role","region"),n.setAttribute("tabindex",this.tabIndex.toString()))},R.prototype.unWireEvents=function(){T.EventHandler.remove(this.element,T.Browser.touchStartEvent,this.gaugeOnMouseDown),T.EventHandler.remove(this.element,T.Browser.touchMoveEvent,this.mouseMove),T.EventHandler.remove(this.element,T.Browser.touchEndEvent,this.mouseEnd),T.EventHandler.remove(this.element,"contextmenu",this.gaugeRightClick),T.EventHandler.remove(this.element,T.Browser.isPointer?"pointerleave":"mouseleave",this.mouseLeave),window.removeEventListener(T.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},R.prototype.wireEvents=function(){T.EventHandler.add(this.element,T.Browser.touchStartEvent,this.gaugeOnMouseDown,this),T.EventHandler.add(this.element,T.Browser.touchMoveEvent,this.mouseMove,this),T.EventHandler.add(this.element,T.Browser.touchEndEvent,this.mouseEnd,this),T.EventHandler.add(this.element,"contextmenu",this.gaugeRightClick,this),T.EventHandler.add(this.element,T.Browser.isPointer?"pointerleave":"mouseleave",this.mouseLeave,this),this.resizeEvent=this.gaugeResize.bind(this),T.EventHandler.add(window,T.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent),this.setStyle(this.element)},R.prototype.setStyle=function(t){t.style.touchAction="element",t.style.msTouchAction="element",t.style.msContentZooming="none",t.style.msUserSelect="none",t.style.webkitUserSelect="none",t.style.position="relative"},R.prototype.gaugeResize=function(){var t,e,i=this;return this.isDestroyed||(t={gauge:this,previousSize:new E(this.availableSize.width,this.availableSize.height),name:Pt,currentSize:new E(0,0),cancel:!1},e=this.element.getBoundingClientRect(),t.currentSize=new E(e.width,e.height),this.trigger(Pt,t),t.cancel)||(this.resizeTo&&clearTimeout(this.resizeTo),!T.isNullOrUndefined(this.element)&&this.element.classList.contains("e-lineargauge")&&(this.resizeTo=window.setTimeout(function(){i.gaugeResized=!0,i.createSvg(),i.allowLoadingAnimation=!1,i.renderElements()},500))),!1},R.prototype.destroy=function(){this.unWireEvents(),Ae.prototype.destroy.call(this),T.isNullOrUndefined(this.gaugeAxisLayoutPanel)||this.gaugeAxisLayoutPanel.destroy(),T.isNullOrUndefined(this.axisRenderer)||this.axisRenderer.destroy(),this.gaugeAxisLayoutPanel=null,this.axisRenderer=null,this.activePointer=null,this.activeAxis=null,this.actualRect=null,this.containerObject=null,this.containerBounds=null,this.availableSize=null,this.mouseElement=null,this.nearSizes=[],this.farSizes=[],this.themeStyle=null,this.intl=null,this.removeSvg(),this.resizeEvent=null,this.svgObject=null,this.renderer=null},R.prototype.renderContainer=function(){for(var t,e,i,o,n="transparent"!==this.container.backgroundColor||"Bootstrap4"!==this.theme&&"Material"!==this.theme&&"Material3"!==this.theme&&"Material3Dark"!==this.theme&&"Fluent2"!==this.theme&&"Fluent2Dark"!==this.theme&&"Bootstrap5"!==this.theme&&"Bootstrap5Dark"!==this.theme&&"Tailwind"!==this.theme&&"TailwindDark"!==this.theme&&"Tailwind3"!==this.theme&&"Tailwind3Dark"!==this.theme?this.container.backgroundColor:this.themeStyle.containerBackground,r=this.container.width,a=r+r/2/Math.PI,l=r/2,s=!1,h=0;h<this.axes.length;h++)if(this.axes[h].minimum!==this.axes[h].maximum){s=!0;break}"Vertical"===this.orientation?(e=this.allowMargin?(e=this.actualRect.height,e=0<this.container.height?this.container.height:2*(e/2-e/2/4),"Thermometer"===this.container.type?e-2*a-l:e):(e=this.actualRect.height-20-30,"Thermometer"===this.container.type&&0!==r?this.actualRect.height-2*a-l-30:e),t=this.container.width,i=this.actualRect.x+(this.actualRect.width/2-this.container.width/2)+this.container.offset,o=this.actualRect.y+(this.actualRect.height/2-("Thermometer"===this.container.type?(e+2*a-l)/2:e/2))):(t=this.allowMargin?(t=0<this.container.height?this.container.height:2*(this.actualRect.width/2-this.actualRect.width/2/4),"Thermometer"===this.container.type?t-2*a-l:t):(t=this.actualRect.width-20,"Thermometer"===this.container.type?this.actualRect.width-2*a-l:t),i=this.actualRect.x+(this.actualRect.width/2-("Thermometer"===this.container.type?(t-2*a+l)/2:t/2)),o=this.actualRect.y+(this.actualRect.height/2-this.container.width/2)+this.container.offset,e=this.container.width),this.containerBounds=s?{x:i,y:o,width:t,height:e}:{x:0,y:0,width:0,height:0},(0<this.containerBounds.width&&"Vertical"===this.orientation||0<this.containerBounds.height&&"Horizontal"===this.orientation)&&(this.containerObject=this.renderer.createGroup({id:this.element.id+"_Container_Group",transform:"translate( 0, 0)"}),"Normal"===this.container.type?(r={color:this.container.border.color||this.themeStyle.containerBorderColor,width:this.container.border.width,dashArray:this.container.border.dashArray},a=new Gt(this.element.id+"_"+this.container.type+"_Layout",n,r,1,new L(i,o,t,e)),this.containerObject.appendChild(this.renderer.drawRectangle(a))):(l=te(this.containerBounds,this.container.type,this.orientation,new E(this.container.height,this.container.width),"container",null,null,this.container.roundedCornerRadius),r=new v(this.element.id+"_"+this.container.type+"_Layout",n,this.container.border.width,this.container.border.color||this.themeStyle.containerBorderColor,1,this.container.border.dashArray,l),this.containerObject.appendChild(this.renderer.drawPath(r))),this.allowLoadingAnimation&&this.containerObject.classList.add(this.element.id+"animation"),this.svgObject.appendChild(this.containerObject))},R.prototype.setMouseXY=function(t){var e,i,o=w(this.element.id+"_svg").getBoundingClientRect(),n=this.element.getBoundingClientRect();-1<t.type.indexOf("touch")?(this.isTouch=!0,e=t.changedTouches[0].clientY,i=t.changedTouches[0].clientX):(this.isTouch="touch"===t.pointerType||"2"===t.pointerType,i=t.clientX,e=t.clientY),this.mouseY=e-n.top-Math.max(o.top-n.top,0),this.mouseX=i-n.left-Math.max(o.left-n.left,0)},R.prototype.gaugeOnMouseDown=function(i){var o,n,r=this,a=(this.setMouseXY(i),this.getMouseArgs(i,"touchstart",xt));return this.trigger(xt,a,function(){var t,e;r.mouseX=a.x,r.mouseY=a.y,r.isTouch&&(i.preventDefault(),r.isTouchPointer=!0),a.target&&!a.cancel&&(-1<a.target.id.indexOf("MarkerPointer")||-1<a.target.id.indexOf("BarPointer"))&&(r.isOverAllAnimationComplete=!0,o=r.moveOnPointer(a.target),n=F(a.target,r),r.activeAxis=r.axes[n.axisIndex],r.activePointer=r.activeAxis.pointers[n.pointerIndex],T.isNullOrUndefined(r.activePointer.pathElement)&&(r.activePointer.pathElement=[i.target]),t=parseInt(r.activePointer.pathElement[0].id.slice(-1),10),e=parseInt(r.activePointer.pathElement[0].id.match(/\d/g)[0],10),n.pointer.enableDrag&&r.trigger(Ct,{axis:r.activeAxis,name:Ct,pointer:r.activePointer,currentValue:r.activePointer.currentValue,pointerIndex:t,axisIndex:e}),!T.isNullOrUndefined(o))&&o.pointer&&(r.pointerDrag=!0,r.mouseElement=a.target)}),!1},R.prototype.mouseMove=function(o){var n,r=this,a=(this.setMouseXY(o),this.getMouseArgs(o,"touchmove",bt));return this.trigger(bt,a,function(){var t,e,i;r.mouseX=a.x,r.mouseY=a.y,a.target&&!a.cancel&&(r.pointerDrag&&r.activePointer?T.isNullOrUndefined(r.activePointer.pathElement)||(r.isTouch&&(r.isTouchPointer=!0,o.preventDefault()),e=parseInt(r.activePointer.pathElement[0].id.slice(-1),10),i=parseInt(r.activePointer.pathElement[0].id.split("AxisIndex_")[1].match(/\d/g)[0],10),r.axes[i].pointers[e].enableDrag&&(n=r.moveOnPointer(r.activePointer.pathElement[0]),!T.isNullOrUndefined(n)&&n.pointer&&(r.element.style.cursor=n.style),r.isDrag=r.isCheckPointerDrag=!0,t={axis:r.activeAxis,pointer:r.activePointer,previousValue:r.activePointer.currentValue,name:Ft,currentValue:null,axisIndex:i,pointerIndex:e},-1<r.activePointer.pathElement[0].id.indexOf("MarkerPointer")?r.markerDrag(r.activeAxis,r.activeAxis.pointers[e]):r.barDrag(r.activeAxis,r.activeAxis.pointers[e]),t.currentValue=r.activePointer.currentValue,r.trigger(Ft,t))):-1<a.target.id.indexOf("Pointer")&&T.isNullOrUndefined(r.activePointer)?(e=parseInt(a.target.id.split("Pointer_")[1],10),i=parseInt(a.target.id.split("AxisIndex_")[1].match(/\d/g)[0],10),r.axes[i].pointers[e].enableDrag&&(r.element.style.cursor="pointer")):r.element.style.cursor=r.pointerDrag?r.element.style.cursor:"auto",r.gaugeOnMouseMove())}),this.notify(T.Browser.touchMoveEvent,o),(!T.isNullOrUndefined(a.target)&&a.target.id===this.element.id+"_LinearGaugeTitle"||document.getElementById(this.element.id+"_EJ2_Title_Tooltip"))&&this.titleTooltip(o,!1),!1},R.prototype.titleTooltip=function(t,e){t.target.id===this.element.id+"_LinearGaugeTitle"&&-1<t.target.textContent.indexOf("...")?(clearTimeout(this.tooltipTimeout),ie(this.title,this),e&&(this.tooltipTimeout=setTimeout(oe.bind(this),2e3))):b(this.element.id+"_EJ2_Title_Tooltip")},R.prototype.moveOnPointer=function(t){var e,i,o=this.element.getBoundingClientRect(),n=!1,r=w(t.id),a=r,t=F(t,this),l=t.axis,t=t.pointer;return t.enableDrag&&(e=(n="Bar"!==t.type||("Vertical"===this.orientation?(t=r.getBoundingClientRect().top-o.top,t=l.isInversed?t+a.getBBox().height:t,l.isInversed?this.mouseY<=t&&this.mouseY>t-10:this.mouseY<t+10&&this.mouseY>=t):(t=r.getBoundingClientRect().left-o.left,t=l.isInversed?t:t+a.getBBox().width,l.isInversed?this.mouseX>=t&&this.mouseX<t+10:this.mouseX>t-10&&this.mouseX<=t)),"grabbing")),i=n?{pointer:n,style:e}:i},R.prototype.gaugeRightClick=function(t){return 2!==t.buttons&&"touch"!==t.pointerType||(t.preventDefault(),t.stopPropagation(),!1)},R.prototype.mouseLeave=function(t){this.activeAxis=null,this.activePointer=null;t=this.getMouseArgs(t,"touchmove",vt);return this.trigger(vt,t),T.isNullOrUndefined(this.mouseElement)||(this.mouseElement=null,this.pointerDrag=!1),!1},R.prototype.gaugeOnMouseMove=function(){var t;return this.pointerDrag&&(t=F(this.mouseElement,this)).pointer.enableDrag&&t.pointer.animationComplete&&this[t.pointer.type.toLowerCase()+"Drag"](t.axis,t.pointer),!0},R.prototype.mouseEnd=function(t){this.isTouchPointer=!1,this.setMouseXY(t);var e,i,o=!T.isNullOrUndefined(this.activePointer)&&"Image"===this.activePointer.markerType,n=this.getMouseArgs(t,"touchend",wt);return this.trigger(wt,n),this.activeAxis&&this.activePointer&&(e=parseInt(this.activePointer.pathElement[0].id.slice(-1),10),i=parseInt(this.activePointer.pathElement[0].id.split("_AxisIndex_")[1],10),this.activePointer.enableDrag)&&(this.trigger(St,{name:St,axis:this.activeAxis,pointer:this.activePointer,currentValue:this.activePointer.currentValue,axisIndex:i,pointerIndex:e}),this.axes[i].pointers[e].value=this.activePointer.currentValue,this.activeAxis=null,this.activePointer=null,this.isDrag=!1,T.isNullOrUndefined(this.mouseElement&&!o)||this.triggerDragEvent(this.mouseElement)),T.isNullOrUndefined(this.mouseElement)||(this.mouseElement=null,this.pointerDrag=!1),this.element.style.cursor="auto",this.notify(T.Browser.touchEndEvent,t),n.target.id!==this.element.id+"_LinearGaugeTitle"&&!document.getElementById(this.element.id+"_EJ2_Title_Tooltip")||this.titleTooltip(t,!0),!0},R.prototype.print=function(t){this.allowPrint&&this.printModule&&this.printModule.print(this,t)},R.prototype.export=function(i,o,n,r){var a=this;return T.isNullOrUndefined(r)&&(r=!0),"PDF"!==i&&this.allowImageExport&&this.imageExportModule?new Promise(function(t,e){t(a.imageExportModule.export(a,i,o,r))}):this.allowPdfExport&&this.pdfExportModule?new Promise(function(t,e){t(a.pdfExportModule.export(a,i,o,n,r))}):null},R.prototype.getMouseArgs=function(t,e,i){var o=this.element.getBoundingClientRect(),o=new Vt(-o.left,-o.top),e=t.type===e;return o.x+=(e?t.changedTouches[0]:t).clientX,o.y+=(e?t.changedTouches[0]:t).clientY,{cancel:!1,name:i,model:this,x:o.x,y:o.y,target:t.target}},R.prototype.markerDrag=function(t,e){var i,o,n=Et(this.element,this.mouseElement,this.orientation,t,"drag",new Vt(this.mouseX,this.mouseY));kt(n,null,null,t.visibleRange.max,t.visibleRange.min,"pointer")&&(i=new v("pointerID",e.color||this.themeStyle.pointerColor,e.border.width,e.border.color,e.opacity,e.border.dashArray,null,""),"Vertical"===this.orientation?e.bounds.y=this.mouseY:e.bounds.x=this.mouseX+ee(this.element),e.currentValue=this.isTouch?e.startValue=n:e.value=n,"Text"===e.markerType&&(o=new C("pointerID",void 0,void 0,"middle",e.text,null,"auto"),o=S(e.bounds,e.markerType,o,this.orientation,t,e)),i=$t(e.bounds,e.markerType,new E(e.width,e.height),e.imageUrl,i,this.orientation,t,e),"Image"===e.markerType||"Text"===e.markerType?(this.mouseElement.setAttribute("x",("Text"===e.markerType?o.x:e.bounds.x-e.bounds.width/2).toString()),this.mouseElement.setAttribute("y",("Text"===e.markerType?o.y:e.bounds.y-e.bounds.height/2).toString())):"Circle"===e.markerType?(this.mouseElement.setAttribute("cx",i.cx.toString()),this.mouseElement.setAttribute("cy",i.cy.toString()),this.mouseElement.setAttribute("r",i.r.toString())):this.mouseElement.setAttribute("d",i.d))},R.prototype.barDrag=function(t,e){var i,o=t.lineBounds,n=t.visibleRange,r="Vertical"===this.orientation?o.height:o.width,o="Vertical"===this.orientation?o.y:o.x,a=k(n.min,t,this.orientation,n)*r+o,n=k(n.max,t,this.orientation,n)*r+o;"Vertical"===this.orientation?(i=t.isInversed?this.mouseY>a&&this.mouseY<n:this.mouseY>n&&this.mouseY<a)&&("Normal"!==this.container.type&&0!==this.container.width||T.isNullOrUndefined(this.mouseElement)?(t.isInversed||(e.bounds.y=this.mouseY),e.bounds.height=Math.abs(a-this.mouseY)):(t.isInversed||this.mouseElement.setAttribute("y",this.mouseY.toString()),this.mouseElement.setAttribute("height",Math.abs(a-this.mouseY).toString()))):(r=ee(this.element),(i=t.isInversed?this.mouseX+r>n&&this.mouseX+r<a:this.mouseX+r>a&&this.mouseX+r<n)&&("Normal"!==this.container.type&&0!==this.container.width||T.isNullOrUndefined(this.mouseElement)?(t.isInversed&&(e.bounds.x=this.mouseX+r),e.bounds.width=Math.abs(a-(this.mouseX+r))):(t.isInversed&&this.mouseElement.setAttribute("x",(this.mouseX+r).toString()),this.mouseElement.setAttribute("width",Math.abs(a-(this.mouseX+r)).toString())))),T.isNullOrUndefined(this.mouseElement)||(o=Et(this.element,this.mouseElement,this.orientation,t,"drag",new Vt(this.mouseX,this.mouseY)),e.currentValue=this.isTouch?e.startValue=o:e.value=o),i&&!T.isNullOrUndefined(this.mouseElement)&&"path"===this.mouseElement.tagName&&(n=te(e.bounds,this.container.type,this.orientation,new E(e.bounds.width,e.bounds.height),"bar",this.container.width,t,e.roundedCornerRadius),this.mouseElement.setAttribute("d",n))},R.prototype.triggerDragEvent=function(t){var e=this,i=F(t,this),o=Et(this.element,t,this.orientation,i.axis,"tooltip",null),t={name:"valueChange",gauge:this,element:t,axisIndex:i.axisIndex,axis:i.axis,pointerIndex:i.pointerIndex,pointer:i.pointer,value:o};this.trigger("valueChange",t,function(t){o!==t.value&&e.setPointerValue(t.axisIndex,t.pointerIndex,t.value)})},R.prototype.setPointerValue=function(t,e,i){var o,n,r;this.isDestroyed||(n=(o=this.axes[t]).pointers[e],this.gaugeResized=!1,this.allowLoadingAnimation&&(this.allowLoadingAnimation=!1,this.createSvg(),this.renderGaugeElements(),this.calculateBounds(),this.renderAxisElements()),n.startValue!==i&&(this.isPointerAnimationInProgress=!1,r=w(this.element.id+"_AxisIndex_"+t+"_"+n.type+"Pointer_"+e),i=i<o.visibleRange.min?o.visibleRange.min:i>o.visibleRange.max?o.visibleRange.max:i,n.currentValue=i,n.isPointerAnimation=!0,this.isPropertyChange=!0,null!==r&&kt(n.currentValue,null,null,o.visibleRange.max,o.visibleRange.min,"pointer")&&(n.value=this.pointerDrag?this.isTouch?n.startValue:i:n.value,this.gaugeAxisLayoutPanel["calculate"+n.type+"Bounds"](o,n),this.axisRenderer["draw"+n.type+"Pointer"](o,t,n,e,r.parentElement)),this.isProtectedOnChange=!0,n.startValue=n.currentValue,n.currentValue=i,n.value=i,this.isProtectedOnChange=!1))},R.prototype.setAnnotationValue=function(t,e,i){var o,n,r,a;this.isDestroyed||(o=null===w(this.element.id+"_Annotation_"+t),n=w(this.element.id+"_AnnotationsGroup")||T.createElement("div",{id:this.element.id+"_AnnotationsGroup"}),r=this.annotations[t],null!==e&&(b(this.element.id+"_Annotation_"+t),r.content=e,r.axisValue=T.isNullOrUndefined(i)?r.axisValue:i,this.annotationsModule.createAnnotationTemplate(n,t,this),T.isNullOrUndefined(r.axisIndex)?o||(a=w(this.element.id+"_Annotation_"+t),T.isNullOrUndefined(a))||"object"!=typeof a||n.appendChild(a):(e=this.axes[r.axisIndex].visibleRange,a=w(this.element.id+"_Annotation_"+t),!o&&r.axisValue>=e.min&&r.axisValue<=e.max&&!T.isNullOrUndefined(a)&&"object"==typeof a&&n.appendChild(a))))},R.prototype.isGradientVisible=function(){for(var t=!1,e=0,i=this.axes;e<i.length;e++){for(var o=i[e],n=0,r=o.pointers;n<r.length;n++){var a=r[n];if(!T.isNullOrUndefined(a.linearGradient)||!T.isNullOrUndefined(a.radialGradient)){t=!0;break}}for(var l=0,s=o.ranges;l<s.length;l++){var h=s[l];if(!T.isNullOrUndefined(h.linearGradient)||!T.isNullOrUndefined(h.radialGradient)){t=!0;break}}}return t},R.prototype.requiredModules=function(){var t=[],e=!1;return this.annotations.map(function(t){e=e||!T.isNullOrUndefined(t.content)&&0!==t.content.length||"function"==typeof t.content}),e&&t.push({member:"Annotations",args:[this,he],name:"Annotations"}),this.tooltip.enable&&t.push({member:"Tooltip",args:[this,pe],name:"GaugeTooltip"}),this.allowPrint&&t.push({member:"Print",args:[this],name:"Print"}),this.allowImageExport&&t.push({member:"ImageExport",args:[this],name:"ImageExport"}),this.allowPdfExport&&t.push({member:"PdfExport",args:[this],name:"PdfExport"}),this.isGradientVisible()&&t.push({member:"Gradient",args:[this,Se],name:"Gradient"}),t},R.prototype.getPersistData=function(){return this.addOnPersist(["loaded"])},R.prototype.getModuleName=function(){return"lineargauge"},R.prototype.onPropertyChanged=function(t,e){if(!this.isDestroyed){var i=!1,o=!1;this.allowLoadingAnimation=0<this.animationDuration&&!this.isOverAllAnimationComplete,this.isPropertyChange=!(0<this.animationDuration&&!this.isOverAllAnimationComplete),this.gaugeResized=!1;for(var n=0,r=Object.keys(t);n<r.length;n++)switch(r[n]){case"height":case"width":case"margin":this.createSvg(),o=!0;break;case"title":o=""===t.title||""===e.title,i=!(""===t.title||""===e.title);break;case"titleStyle":t.titleStyle&&t.titleStyle.size?o=!0:i=!0;break;case"border":case"background":i=!0;break;case"container":o=!0;break;case"orientation":this.isOverAllAnimationComplete=!0,this.isPointerAnimationInProgress=this.allowLoadingAnimation=!1;for(var a=0;a<this.axes.length;a++)for(var l=0;l<this.axes[a].pointers.length;l++)this.axes[a].pointers[l].startValue=this.axes[a].minimum,this.axes[a].pointers[l].isPointerAnimation=!0;o=!0;break;case"axes":for(var s=0;s<this.axes.length;s++)if(!T.isNullOrUndefined(t.axes[s]))for(var h=0,d=Object.keys(t.axes[s]);h<d.length;h++)if("pointers"===d[h])for(var p=Object.keys(t.axes[s].pointers).length,u=0;u<p;u++){var g,c=parseInt(Object.keys(t.axes[s].pointers)[u],10);isNaN(c)||T.isNullOrUndefined(Object.keys(t.axes[s].pointers[c]))||(this.allowLoadingAnimation=!1,this.isPointerAnimationInProgress=!1,this.axes[s].pointers[c].startValue=this.axes[s].pointers[c].currentValue,this.axes[s].pointers[c].isPointerAnimation=-1<Object.keys(t.axes[s].pointers[c]).indexOf("value"),this.pointerDrag&&(this.axes[s].pointers[c].isPointerAnimation=!1,this.isTouchPointer)&&t.axes[s].pointers[c].text!==e.axes[s].pointers[c].text&&(g=this.axes[s].pointers[c],c=this.element.id+"_AxisIndex_"+s+"_"+g.type+"Pointer_"+c,this.axisRenderer.updateTextPointer(c,g,this.axes[s])))}o=!0}!this.isTouchPointer&&T.isNullOrUndefined(this.activePointer)&&(!o&&i&&(this.removeSvg(),this.renderGaugeElements(),this.renderAxisElements()),o||this.allowLoadingAnimation)&&(this.createSvg(),this.renderGaugeElements(),this.calculateBounds(),this.renderAxisElements(),this.allowLoadingAnimation)&&(this.allowLoadingAnimation=0<this.animationDuration&&!this.isOverAllAnimationComplete,this.renderAnimation())}},z([T.Property(null)],R.prototype,"width",void 0),z([T.Property(!0)],R.prototype,"allowMargin",void 0),z([T.Property(null)],R.prototype,"height",void 0),z([T.Property(0)],R.prototype,"animationDuration",void 0),z([T.Property("Vertical")],R.prototype,"orientation",void 0),z([T.Property("None")],R.prototype,"edgeLabelPlacement",void 0),z([T.Property(!1)],R.prototype,"allowPrint",void 0),z([T.Property(!1)],R.prototype,"allowImageExport",void 0),z([T.Property(!1)],R.prototype,"allowPdfExport",void 0),z([T.Complex({},W)],R.prototype,"margin",void 0),z([T.Complex({color:"",width:0},n)],R.prototype,"border",void 0),z([T.Property(null)],R.prototype,"background",void 0),z([T.Property("")],R.prototype,"title",void 0),z([T.Complex({size:null,color:null,fontFamily:null,fontStyle:null,fontWeight:null},M)],R.prototype,"titleStyle",void 0),z([T.Complex({},Q)],R.prototype,"container",void 0),z([T.Collection([{}],i)],R.prototype,"axes",void 0),z([T.Complex({},e)],R.prototype,"tooltip",void 0),z([T.Collection([{}],q)],R.prototype,"annotations",void 0),z([T.Property([])],R.prototype,"rangePalettes",void 0),z([T.Property(!1)],R.prototype,"useGroupingSeparator",void 0),z([T.Property(null)],R.prototype,"description",void 0),z([T.Property(0)],R.prototype,"tabIndex",void 0),z([T.Property(null)],R.prototype,"format",void 0),z([T.Property("Material")],R.prototype,"theme",void 0),z([T.Event()],R.prototype,"loaded",void 0),z([T.Event()],R.prototype,"load",void 0),z([T.Event()],R.prototype,"animationComplete",void 0),z([T.Event()],R.prototype,"axisLabelRender",void 0),z([T.Event()],R.prototype,"dragStart",void 0),z([T.Event()],R.prototype,"dragMove",void 0),z([T.Event()],R.prototype,"dragEnd",void 0),z([T.Event()],R.prototype,"annotationRender",void 0),z([T.Event()],R.prototype,"tooltipRender",void 0),z([T.Event()],R.prototype,"gaugeMouseMove",void 0),z([T.Event()],R.prototype,"gaugeMouseLeave",void 0),z([T.Event()],R.prototype,"gaugeMouseDown",void 0),z([T.Event()],R.prototype,"gaugeMouseUp",void 0),z([T.Event()],R.prototype,"valueChange",void 0),z([T.Event()],R.prototype,"resized",void 0),z([T.Event()],R.prototype,"beforePrint",void 0),z([T.NotifyPropertyChanges],R));function R(t,e){t=Ae.call(this,t,e)||this;return t.gradientCount=0,t.isDrag=!1,t.splitUpCount=0,t.allowLoadingAnimation=!1,t.isPointerAnimationInProgress=!1,t.isOverAllAnimationComplete=!1,t.pointerDrag=!1,t.isTouchPointer=!1,t.isCheckPointerDrag=!1,t.mouseX=0,t.mouseY=0,t.gaugeResized=!1,t}Te.prototype.print=function(t,e){var i=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no"),o=(i.moveTo(0,0),i.resizeTo(screen.availWidth,screen.availHeight),{cancel:!1,htmlContent:this.getHTMLContent(t,e),name:"beforePrint"});t.trigger("beforePrint",o,function(){o.cancel||T.print(o.htmlContent,i)})},Te.prototype.getHTMLContent=function(t,e){var i,o,n=T.createElement("div");return e?e instanceof Array?e.forEach(function(t){n.appendChild(w(t).cloneNode(!0))}):e instanceof Element?n.appendChild(e.cloneNode(!0)):n.appendChild(w(e).cloneNode(!0)):(o=(e=t.element.cloneNode(!0)).getElementsByTagName("svg")[0],T.isNullOrUndefined(o)||(o=o.childNodes[0],T.isNullOrUndefined(o))||(i=o.getAttribute("fill"),"Tailwind"!==t.theme&&"Tailwind3"!==t.theme&&"Bootstrap5"!==t.theme&&"Fluent"!==t.theme&&"Material3"!==t.theme&&"Fluent2"!==t.theme||"rgba(255,255,255, 0.0)"!==i&&"transparent"!==i?"TailwindDark"!==t.theme&&"Tailwind3Dark"!==t.theme&&"Bootstrap5Dark"!==t.theme&&"FluentDark"!==t.theme&&"Material3Dark"!==t.theme&&"Fluent2Dark"!==t.theme&&"Fluent2HighContrast"!==t.theme||"rgba(255,255,255, 0.0)"!==i&&"transparent"!==i||o.setAttribute("fill","rgba(0, 0, 0, 1)"):o.setAttribute("fill","rgba(255,255,255, 1)"),""===o.getAttribute("stroke")&&o.setAttribute("stroke","transparent")),n.appendChild(e)),n},Te.prototype.getModuleName=function(){return"Print"},Te.prototype.destroy=function(){};z=Te;function Te(t){}Ee.prototype.export=function(s,h,d,p){return new Promise(function(t){var e,i,o=T.createElement("canvas",{id:"ej2-canvas",attrs:{width:s.availableSize.width.toString(),height:s.availableSize.height.toString()}}),n=s.svgObject.cloneNode(!0),r=n.childNodes[0].getAttribute("fill"),a=("Tailwind"!==s.theme&&"Tailwind3"!==s.theme&&"Bootstrap5"!==s.theme&&"Fluent"!==s.theme&&"Material3"!==s.theme&&"Fluent2"!==s.theme||"rgba(255,255,255, 0.0)"!==r&&"transparent"!==r?"TailwindDark"!==s.theme&&"Tailwind3Dark"!==s.theme&&"Bootstrap5Dark"!==s.theme&&"FluentDark"!==s.theme&&"Material3Dark"!==s.theme&&"Fluent2Dark"!==s.theme&&"Fluent2HighContrast"!==s.theme||"rgba(255,255,255, 0.0)"!==r&&"transparent"!==r||n.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):n.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)"),!(-1<T.Browser.userAgent.toString().indexOf("HeadlessChrome"))),r='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+n.outerHTML+"</svg>",l=window.URL.createObjectURL(new Blob("SVG"===h?[r]:[(new XMLSerializer).serializeToString(n)],{type:"image/svg+xml"}));"SVG"===h?p?_t(d,h,l,a):t(null):(e=new Image,i=o.getContext("2d"),e.onload=function(){i.drawImage(e,0,0),window.URL.revokeObjectURL(l),p?_t(d,h,o.toDataURL("image/png").replace("image/png","image/octet-stream"),a):"JPEG"===h?t(o.toDataURL("image/jpeg")):"PNG"===h&&t(o.toDataURL("image/png"))},e.src=l)})},Ee.prototype.getModuleName=function(){return"ImageExport"},Ee.prototype.destroy=function(){};var ke=Ee;function Ee(t){}Oe.prototype.export=function(s,h,d,p,u){return new Promise(function(i){var o=T.createElement("canvas",{id:"ej2-canvas",attrs:{width:s.availableSize.width.toString(),height:s.availableSize.height.toString()}}),t=(p=T.isNullOrUndefined(p)?_.PdfPageOrientation.Landscape:p,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+s.svgObject.outerHTML+"</svg>"),e=s.svgObject.cloneNode(!0),n=e.childNodes[0].getAttribute("fill"),r=("Tailwind"!==s.theme&&"Tailwind3"!==s.theme&&"Bootstrap5"!==s.theme&&"Fluent"!==s.theme&&"Material3"!==s.theme&&"Fluent2"!==s.theme||"rgba(255,255,255, 0.0)"!==n&&"transparent"!==n?"TailwindDark"!==s.theme&&"Tailwind3Dark"!==s.theme&&"Bootstrap5Dark"!==s.theme&&"FluentDark"!==s.theme&&"Material3Dark"!==s.theme&&"Fluent2Dark"!==s.theme&&"Fluent2HighContrast"!==s.theme||"rgba(255,255,255, 0.0)"!==n&&"transparent"!==n||e.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):e.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)"),window.URL.createObjectURL(new Blob("SVG"===h?[t]:[(new XMLSerializer).serializeToString(e)],{type:"image/svg+xml"}))),a=new Image,l=o.getContext("2d");a.onload=function(){l.drawImage(a,0,0),window.URL.revokeObjectURL(r);var t=new _.PdfDocument,e=o.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");t.pageSettings.orientation=p,e=e.slice(e.indexOf(",")+1),t.pages.add().graphics.drawImage(new _.PdfBitmap(e),0,0,s.availableSize.width-60,s.availableSize.height),u?(t.save(d+".pdf"),t.destroy()):i(null)},a.src=r})},Oe.prototype.getModuleName=function(){return"PdfExport"},Oe.prototype.destroy=function(){};var Le=Oe;function Oe(t){}t.Align=Xt,t.Annotation=q,t.Annotations=he,t.Axis=i,t.Border=n,t.ColorStop=ce,t.Container=Q,t.CustomizeOption=Dt,t.Font=M,t.GaugeLocation=Vt,t.GaugeTooltip=pe,t.Gradient=Se,t.GradientPosition=fe,t.ImageExport=ke,t.Label=rt,t.Line=ot,t.LinearGauge=B,t.LinearGradient=xe,t.Margin=W,t.PathOption=v,t.PdfExport=Le,t.Pointer=pt,t.Print=z,t.RadialGradient=h,t.Range=lt,t.RangeTooltip=$,t.Rect=L,t.RectOption=Gt,t.Size=E,t.TextOption=C,t.TextStyle=j,t.Tick=ht,t.TooltipSettings=e,t.VisibleLabels=Ht,t.VisibleRange=Mt,t.calculateNiceInterval=Jt,t.calculateShapes=$t,t.calculateTextPosition=S,t.convertPixelToValue=Et,t.formatValue=It,t.getActualDesiredIntervalsCount=qt,t.getBox=te,t.getElement=w,t.getElementOffset=Rt,t.getExtraWidth=ee,t.getFontStyle=Ot,t.getMousePosition=Qt,t.getPathToRect=Lt,t.getPointer=F,t.getRangeColor=Zt,t.getRangePalette=Kt,t.getTemplateFunction=zt,t.measureText=f,t.removeElement=b,t.removeTooltip=oe,t.showTooltip=ie,t.stringToNumber=At,t.stringToNumberSize=Tt,t.textElement=Yt,t.textFormatter=Bt,t.textTrim=x,t.triggerDownload=_t,t.valueToCoefficient=k,t.withInRange=kt,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-lineargauge.umd.min.js.map