Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-svg-base

Package Overview
Dependencies
Maintainers
2
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-svg-base - npm Package Compare versions

Comparing version 17.1.1-beta to 17.1.32-beta

src/svg-render/canvas-renderer.d.ts

4

dist/ej2-svg-base.umd.min.js
/*!
* filename: ej2-svg-base.umd.min.js
* version : 17.1.1-beta
* version : 17.1.32-beta
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function o(t,i){var o=document.getElementById("chartmeasuretext");return null===o&&(o=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(o)),o.innerHTML=t,o.style.position="absolute",o.style.fontSize=i.size,o.style.fontWeight=i.fontWeight,o.style.fontStyle=i.fontStyle,o.style.fontFamily=i.fontFamily,o.style.visibility="hidden",o.style.top="-100",o.style.left="0",o.style.whiteSpace="nowrap",o.style.lineHeight="normal",new h(o.clientWidth,o.clientHeight)}function r(t){return document.getElementById(t)}function n(t){var i=r(t);i&&e.remove(i)}function a(t,i,o,r,n,a){var s=new e.SvgRenderer(""),h=function(t,i,o,r,n){var a,s="Path",h=i.width,p=i.height,d=t.x,l=t.y,c=t.x+-h/2,y=t.y+-p/2;switch(o){case"Circle":case"Bubble":s="Ellipse",e.merge(r,{rx:h/2,ry:p/2,cx:d,cy:l});break;case"Cross":a="M "+c+" "+l+" L "+(d+h/2)+" "+l+" M "+d+" "+(l+p/2)+" L "+d+" "+(l+-p/2),e.merge(r,{d:a});break;case"HorizontalLine":a="M "+c+" "+l+" L "+(d+h/2)+" "+l,e.merge(r,{d:a});break;case"VerticalLine":a="M "+d+" "+(l+p/2)+" L "+d+" "+(l+-p/2),e.merge(r,{d:a});break;case"Diamond":a="M "+c+" "+l+" L "+d+" "+(l+-p/2)+" L "+(d+h/2)+" "+l+" L "+d+" "+(l+p/2)+" L "+c+" "+l+" z",e.merge(r,{d:a});break;case"Rectangle":a="M "+c+" "+(l+-p/2)+" L "+(d+h/2)+" "+(l+-p/2)+" L "+(d+h/2)+" "+(l+p/2)+" L "+c+" "+(l+p/2)+" L "+c+" "+(l+-p/2)+" z",e.merge(r,{d:a});break;case"Triangle":a="M "+c+" "+(l+p/2)+" L "+d+" "+(l+-p/2)+" L "+(d+h/2)+" "+(l+p/2)+" L "+c+" "+(l+p/2)+" z",e.merge(r,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(l-p/2)+" L "+d+" "+(l+p/2)+" L "+(d-h/2)+" "+(l-p/2)+" L "+(d+h/2)+" "+(l-p/2)+" z",e.merge(r,{d:a});break;case"Pentagon":for(var u=void 0,f=void 0,m=0;m<=5;m++)u=h/2*Math.cos(Math.PI/180*(72*m)),f=p/2*Math.sin(Math.PI/180*(72*m)),a=0===m?"M "+(d+u)+" "+(l+f)+" ":a.concat("L "+(d+u)+" "+(l+f)+" ");a=a.concat("Z"),e.merge(r,{d:a});break;case"Image":s="Image",e.merge(r,{href:n,height:p,width:h,x:c,y:y})}return{renderOption:r,functionName:s}}(t,o,i,n,r),p=s["draw"+h.functionName](h.renderOption);return p.setAttribute("aria-label",a),p}var s=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),h=function(){return function(t,e){this.width=t,this.height=e}}(),p=function(){return function(t,e,i,o){this.x=t,this.y=e,this.width=i,this.height=o}}(),d=function(){return function(t,e){this.isRight=e,this.isBottom=t}}(),l=function(){return function(t){this.id=t}}(),c=function(t){function e(e,i,o,r,n,a,s){void 0===a&&(a="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=o,h.anchor=r,h.text=n,h.transform=a,h.baseLine=s,h}return s(e,t),e}(l),y=function(t){function e(e,i,o,r,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=r,h["stroke-width"]=o,h["stroke-dasharray"]=a,h.d=s,h}return s(e,t),e}(l),u=function(){return function(t,e){this.x=t,this.y=e}}(),f=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),m=function(t,e,i,o){var r,n=arguments.length,a=n<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 s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},g=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return f(i,t),m([e.Property(null)],i.prototype,"size",void 0),m([e.Property("")],i.prototype,"color",void 0),m([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),m([e.Property("Normal")],i.prototype,"fontWeight",void 0),m([e.Property("Normal")],i.prototype,"fontStyle",void 0),m([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),v=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return f(i,t),m([e.Property("")],i.prototype,"color",void 0),m([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),x=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return f(i,t),m([e.Property(0)],i.prototype,"x",void 0),m([e.Property(0)],i.prototype,"y",void 0),m([e.Property(0)],i.prototype,"width",void 0),m([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),w=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return f(i,t),m([e.Property(0)],i.prototype,"x",void 0),m([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),b=function(t){function s(e,i){return t.call(this,e,i)||this}return f(s,t),s.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},s.prototype.initPrivateVariable=function(){this.renderer=new e.SvgRenderer(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},s.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},s.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var o=document.getElementById("chartmeasuretext");o&&e.remove(o)},s.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:this.opacity,stroke:this.border.color});e.appendChild(i)}},s.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var o,n=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),p=r(this.element.id+"_group"),d=2*this.marginX+i/2+(e?this.arrowPadding:0),l=0,c=this.shapes;l<c.length;l++){var f=c[l];o=new y(this.element.id+"_Trackball_"+n,this.palette[n],1,"#cccccc",1,null),this.markerPoint[n]&&s.appendChild(a(new u(d,this.markerPoint[n]-this.padding+(t?this.arrowPadding:0)),f,new h(i,i),"",o,null)),n++}p.appendChild(s)},s.prototype.renderTooltipElement=function(t,i){var n,a=r(this.element.id),s=new u(0,0),h=new u(0,0),l=r(this.element.id+"_svg"),c=r(this.element.id+"_group"),y=r(this.element.id+"_path"),f=!1,m=!1,g=!1,v=0,x=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(n=this.sharedTooltipLocation(t,this.location.x,this.location.y),f=!0):(n=this.tooltipLocation(t,i,s,h),this.inverted?v=(m=n.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(g=!(f=n.y<i.y+this.clipBounds.y),x=f?0:this.arrowPadding)),""!==this.header){var w=o(this.header,this.textStyle).height+2*this.marginY+(g?this.arrowPadding:0),b="M "+(3*this.marginX+(m||f||g?0:this.arrowPadding))+" "+w+"L "+(n.width+(m||f||g?0:this.arrowPadding)-2*this.marginX)+" "+w,P=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:b});c.appendChild(P)}var L=this.border.width/2,S=new p(L+v,L+x,n.width-L,n.height-L);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,n.x,n.y):this.animateTooltipDiv(a,n),l.setAttribute("height",(n.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),l.setAttribute("width",(n.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),l.setAttribute("opacity","1"),y.setAttribute("d",function(t,e,i,o,r,n,a,s,h,p,d){var l="",c=i.x,y=i.y,u=i.x+i.width,f=i.y+i.height;return d=d||0,n?(l=(l=l.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(f-e)+" Q "+u+" "+f+" "+(u-t)+" "+f),0!==r&&(l=(l=l.concat(" L "+(o.x+r/2)+" "+f)).concat(" L "+(h+d)+" "+(f+r-d)),l+=" Q "+h+" "+(f+r)+" "+(h-d)+" "+(f+r-d)),l=o.x-r/2>c?l.concat(" L "+(o.x-r/2)+" "+f+" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z"):0===r?l.concat(" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z"):l.concat(" L "+c+" "+(f+e)+" z")):a?(l=(l=l.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(o.x-r/2)+" "+y)).concat(" L "+(h-d)+" "+(o.y+d)),l=(l=(l+=" Q "+h+" "+o.y+" "+(h+d)+" "+(o.y+d)).concat(" L "+(o.x+r/2)+" "+y+" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e))).concat(" L "+u+" "+(f-e)+" Q "+u+" "+f+" "+(u-t)+" "+f+" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z")):s?(l=(l=(l=l.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(u-t)+" "+y+" Q "+u+" "+y+" "+u+" "+(y+e)+" L "+u+" "+(o.y-r/2))).concat(" L "+(u+r-d)+" "+(p-d)),l=(l=(l+=" Q "+(u+r)+" "+p+" "+(u+r-d)+" "+(p+d)).concat(" L "+u+" "+(o.y+r/2)+" L "+u+" "+(f-e)+" Q "+u+" "+f+" "+(u-t)+" "+f)).concat(" L "+(c+t)+" "+f+" Q "+c+" "+f+" "+c+" "+(f-e)+" z")):(l=(l=l.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+(y+e)+" L "+c+" "+(o.y-r/2))).concat(" L "+(c-r+d)+" "+(p-d)),l=(l=(l+=" Q "+(c-r)+" "+p+" "+(c-r+d)+" "+(p+d)).concat(" L "+c+" "+(o.y+r/2)+" L "+c+" "+(f-e)+" Q "+c+" "+f+" "+(c+t)+" "+f)).concat(" L "+(u-t)+" "+f+" Q "+u+" "+f+" "+u+" "+(f-e)+" L "+u+" "+(y+e)+" Q "+u+" "+y+" "+(u-t)+" "+y+" z")),l}(this.rx,this.ry,S,s,this.arrowPadding,f,g,m,h.x,h.y,this.tipRadius)),this.enableShadow){y.setAttribute("filter",e.Browser.isIE?"":"url(#chart_shadow_tooltip)");var _='<filter id="chart_shadow_tooltip" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';_+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',_+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var T=this.renderer.createDefs();T.setAttribute("id","SVG_tooltip_definition"),c.appendChild(T),T.innerHTML=_}return y.setAttribute("stroke",this.border.color),this.changeText(new u(v,x),g,!m&&!f&&!g,n),new d(g,!m&&!f&&!g)},s.prototype.changeText=function(t,e,i,o){var r=document.getElementById(this.element.id+"_text");e&&r.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&r.setAttribute("transform","translate("+this.arrowPadding+" 0)")},s.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},s.prototype.renderText=function(t){var i,a,s,p,d=0,l=0,y=0,u=e.extend({},this.textStyle,null,!0).properties,f=r(this.element.id+"_group"),m="";this.findFormattedText();var g=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==g?this.marginY:0,x=!0,w=!0;this.markerPoint=[];var b=this.shapes.length>0?10:0,P=this.shapes.length>0?5:0,L="Normal",S=this.themeStyle.tooltipLightLabel,_=22/parseFloat("13px")*parseFloat(u.size);t||(n(this.element.id+"_text"),n(this.element.id+"_header_path"),n(this.element.id+"_trackball_group"),n("SVG_tooltip_definition"));for(var T=new c(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),A=function(t,i,o,r){var n,a,s={},h=new e.SvgRenderer("");return s={id:t.id,x:t.x,y:t.y,fill:o,"font-size":i.size,"font-style":i.fontStyle,"font-family":i.fontFamily,"font-weight":i.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:i.opacity,"dominant-baseline":t.baseLine},a="string"==typeof t.text?t.text:t.text[0],n=h.createText(s,a),r.appendChild(n),n}(T,u,null,f),C=0,k=this.formattedText.length;C<k;C++){var z=this.formattedText[C].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==z[0]){o(this.formattedText[C],u),0===C&&""!==g||this.markerPoint.push((""!==g?this.marginY:0)+T.y+d);for(var M=0,F=z.length;M<F;M++){y=0,w=!0,d+=_;for(var B=0,R=(i=z[M].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;B<R;B++)s=i[B],/\S/.test(s)||""===s||(s=" "),(!w&&" "===s||""!==s.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(y+=" "!==s?4:0,w&&!x?(p={x:2*this.marginX+(b+P),dy:_+(w?v:0),fill:""},v=null):p=x&&w?{x:""===g?2*this.marginX+(b+P):2*this.marginX}:{},w=!1,a=this.renderer.createTSpan(p,""),A.appendChild(a),s.indexOf("<b>")>-1?(L="bold",S=this.themeStyle.tooltipBoldLabel,m="font-weight:"+L,u.fontWeight=L,a.setAttribute("fill",this.textStyle.color||S)):(m="bold"===L?"font-weight:"+L:"",u.fontWeight=L,a.setAttribute("fill",this.textStyle.color||S)),s.indexOf("</b>")>-1&&(L="Normal",S=this.themeStyle.tooltipLightLabel),a.textContent=s=s.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),y+=o(s,u).width,""!==m&&a.setAttribute("style",m),x=!1);y-=4,l=Math.max(l,y)}}}this.elementSize=new h(l+(l>0?2*this.marginX:0),d),this.elementSize.width+=b+P;var O=A.childNodes[0];if(""!==g&&O){u.fontWeight="bold";var Q=(this.elementSize.width+2*this.padding)/2-o(g,u).width/2;O.setAttribute("x",Q.toString())}},s.prototype.createTemplate=function(t,i){var o={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",o);var n=document.getElementById(this.element.id),a=n.firstElementChild;if(a&&e.remove(a),o.cancel)e.remove(r(this.element.id+"_tooltip"));else{for(var s=this.templateFn(this.data),p=e.createElement("div",{id:this.element.id+"parent_template"});s&&s.length>0;)p.appendChild(s[0]);n.appendChild(p);var d=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new h(d.width,d.height);var l=this.tooltipLocation(t,i,new u(0,0),new u(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,l.x,l.y):this.animateTooltipDiv(this.element,l)}},s.prototype.sharedTooltipLocation=function(t,e,i){var o=this.elementSize.width+2*this.marginX,r=this.elementSize.height+2*this.marginY,n=new p(e+2*this.padding,i-r-this.padding,o,r);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},s.prototype.tooltipLocation=function(t,e,i,o){var r=new u(e.x,e.y),n=this.elementSize.width+2*this.marginX,a=this.elementSize.height+2*this.marginY,s=this.offset,h=this.clipBounds.x,d=this.clipBounds.y,l=t.x,c=t.y;return this.inverted?(r=new u(r.x+h+s,r.y+d-this.elementSize.height/2-this.padding),i.y=o.y=a/2,(r.x+n+this.arrowPadding>l+t.width||this.isNegative)&&(r.x=(e.x>t.width?t.width:e.x)+h-s-(n+this.arrowPadding)),r.x<l&&(r.x=(e.x<0?0:e.x)+h+s),r.y<=c&&(i.y-=c-r.y,o.y-=c-r.y,r.y=c),r.y+a>=c+t.height&&(i.y+=r.y+a-(c+t.height),o.y+=r.y+a-(c+t.height),r.y-=r.y+a-(c+t.height)),i.y+this.arrowPadding/2>a-this.ry&&(i.y=a-this.ry-this.arrowPadding/2,o.y=a,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,o.y=0,this.tipRadius=0)):(r=new u(r.x+h-this.elementSize.width/2-this.padding,r.y+d-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=o.x=n/2,(r.y<c||this.isNegative)&&(r.y=(e.y<0?0:e.y)+d+s),r.y+a+this.arrowPadding>c+t.height&&(r.y=(e.y>t.height?t.height:e.y)+d-this.elementSize.height-2*this.padding-this.arrowPadding-s),o.x=n/2,r.x<l&&(i.x-=l-r.x,o.x-=l-r.x,r.x=l),r.x+n>l+t.width&&(i.x+=r.x+n-(l+t.width),o.x+=r.x+n-(l+t.width),r.x-=r.x+n-(l+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,o.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,o.x=0,this.tipRadius=0)),new p(r.x,r.y,n,a)},s.prototype.animateTooltipDiv=function(t,i){var o,r=this,n=parseFloat(t.style.left),a=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){o=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+o*(i.x-n)+"px",t.style.top=a+o*(i.y-a)+"px"},end:function(e){r.updateDiv(t,i.x,i.y),r.trigger("animationComplete",{tooltip:r})}})},s.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},s.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},s.prototype.fadeOut=function(){var t=this,i=r(this.element.id);if(i){var o=i.firstChild,n=parseFloat(o.getAttribute("opacity"))||1;new e.Animation({}).animate(o,{duration:200,progress:function(e){t.progressAnimation(o,n,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(o)}})}},s.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},s.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},s.prototype.getPersistData=function(){return this.addOnPersist([])},s.prototype.getModuleName=function(){return"tooltip"},s.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},s.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},m([e.Property(!1)],s.prototype,"enable",void 0),m([e.Property(!1)],s.prototype,"shared",void 0),m([e.Property(!0)],s.prototype,"enableShadow",void 0),m([e.Property(null)],s.prototype,"fill",void 0),m([e.Property("")],s.prototype,"header",void 0),m([e.Property(.75)],s.prototype,"opacity",void 0),m([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},g)],s.prototype,"textStyle",void 0),m([e.Property(null)],s.prototype,"template",void 0),m([e.Property(!0)],s.prototype,"enableAnimation",void 0),m([e.Property(!1)],s.prototype,"inverted",void 0),m([e.Property(!1)],s.prototype,"isNegative",void 0),m([e.Complex({color:"#cccccc",width:.5},v)],s.prototype,"border",void 0),m([e.Property([])],s.prototype,"content",void 0),m([e.Property(10)],s.prototype,"markerSize",void 0),m([e.Complex({x:0,y:0},w)],s.prototype,"clipBounds",void 0),m([e.Property([])],s.prototype,"palette",void 0),m([e.Property([])],s.prototype,"shapes",void 0),m([e.Complex({x:0,y:0},w)],s.prototype,"location",void 0),m([e.Property(0)],s.prototype,"offset",void 0),m([e.Property(2)],s.prototype,"rx",void 0),m([e.Property(2)],s.prototype,"ry",void 0),m([e.Property(5)],s.prototype,"marginX",void 0),m([e.Property(5)],s.prototype,"marginY",void 0),m([e.Property(12)],s.prototype,"arrowPadding",void 0),m([e.Property(null)],s.prototype,"data",void 0),m([e.Property("Material")],s.prototype,"theme",void 0),m([e.Complex({x:0,y:0,width:0,height:0},x)],s.prototype,"areaBounds",void 0),m([e.Event()],s.prototype,"tooltipRender",void 0),m([e.Event()],s.prototype,"loaded",void 0),m([e.Event()],s.prototype,"animationComplete",void 0),s=m([e.NotifyPropertyChanges],s)}(e.Component);t.TextStyle=g,t.TooltipBorder=v,t.AreaBounds=x,t.ToolLocation=w,t.Tooltip=b,t.getTooltipThemeColor=i,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@syncfusion/ej2-base")):"function"==typeof define&&define.amd?define(["exports","@syncfusion/ej2-base"],e):e(t.ej={},t.ej2Base)}(this,function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;case"Bootstrap4":e={tooltipFill:"rgba(0, 0, 0, 0.9)",tooltipBoldLabel:"rgba(255, 255, 255)",tooltipLightLabel:"rgba(255, 255, 255, 0.9)",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new u(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,d){var c="",p=i.x,u=i.y,y=i.x+i.width,f=i.y+i.height;return d=d||0,n?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f),0!==o&&(c=(c=c.concat(" L "+(r.x+o/2)+" "+f)).concat(" L "+(h+d)+" "+(f+o-d)),c+=" Q "+h+" "+(f+o)+" "+(h-d)+" "+(f+o-d)),c=r.x-o/2>p?c.concat(" L "+(r.x-o/2)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):0===o?c.concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z"):c.concat(" L "+p+" "+(f+e)+" z")):s?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-d)+" "+(r.y+d)),c=(c=(c+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f+" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):a?(c=(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(l-d)),c=(c=(c+=" Q "+(y+o)+" "+l+" "+(y+o-d)+" "+(l+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(f-e)+" Q "+y+" "+f+" "+(y-t)+" "+f)).concat(" L "+(p+t)+" "+f+" Q "+p+" "+f+" "+p+" "+(f-e)+" z")):(c=(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-o/2))).concat(" L "+(p-o+d)+" "+(l-d)),c=(c=(c+=" Q "+(p-o)+" "+l+" "+(p-o+d)+" "+(l+d)).concat(" L "+p+" "+(r.y+o/2)+" L "+p+" "+(f-e)+" Q "+p+" "+f+" "+(p+t)+" "+f)).concat(" L "+(y-t)+" "+f+" Q "+y+" "+f+" "+y+" "+(f-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function n(t){return document.getElementById(t)}function s(t){var i=n(t);i&&e.remove(i)}function a(t,e,i,r,o,n){var s=new d(""),a=h(t,i,e,o,r),l=s["draw"+a.functionName](a.renderOption);return l.setAttribute("aria-label",n),l}function h(t,i,r,o,n){var s,a="Path",h=i.width,l=i.height,d=t.x,c=t.y,p=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":s="M "+p+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+p+" "+c+" L "+(d+h/2)+" "+c,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+p+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+p+" "+c+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+p+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" L "+p+" "+(c+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+p+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,f=void 0,g=0;g<=5;g++)y=h/2*Math.cos(Math.PI/180*(72*g)),f=l/2*Math.sin(Math.PI/180*(72*g)),s=0===g?"M "+(d+y)+" "+(c+f)+" ":s.concat("L "+(d+y)+" "+(c+f)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:l,width:h,x:p,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o,n,s={},a=new d("");return s={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},n="string"==typeof t.text?t.text:t.text[0],o=a.createText(s,n),r.appendChild(o),o}var d=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),o=document.createElementNS(this.svgLink,t);o=this.setElementAttributes(e,o);for(var n=0;n<i.length;n++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[n].colorStop),s.setAttribute("stop-color",i[n].color),s.setAttribute("stop-opacity","1"),o.appendChild(s)}return r.appendChild(o),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)e.setAttribute(i[r],t[i[r]]);return e},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawRectangle=function(t){var e=this.ctx,i=t.rx;this.ctx.save(),this.ctx.beginPath(),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==i&&i>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var s=0;s<i.length;s+=3){var a=parseFloat(i[s+1]),h=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,h);break;case"L":t.innerR||this.ctx.lineTo(a,h);break;case"C":var l=parseFloat(i[s+3]),d=parseFloat(i[s+4]),c=parseFloat(i[s+5]),p=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,l,d,c,p),s+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),s+=5;break;case"z":this.ctx.closePath()}}"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawText=function(t,i){var r=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(r)||"regular"!==r.toLowerCase()||(r="normal");var o=this.getOptionValue(t,"font-size"),n=this.getOptionValue(t,"font-family"),s=this.getOptionValue(t,"font-style").toLowerCase()+" "+r+" "+o+" "+n,a=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;"middle"===a&&(a="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=s,this.ctx.textAlign=a,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline);this.ctx.translate(t.x+0,t.y),this.ctx.rotate(t.labelRotation*Math.PI/180),this.ctx.fillText(i,0,0),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCircle=function(t){var e=this.ctx;this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawEllipse=function(t){var e=this.ctx,i=Math.max(t.rx,t.ry),r=t.rx/i,o=t.ry/i;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),this.ctx.save(),this.ctx.scale(r,o),this.ctx.arc(0,0,i,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.createLinearGradient=function(t){var i;e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height));return this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height));return this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,s=t[o].colorStop.slice(0,-1),a=parseInt(s,10)/100;i.addColorStop(a,n)}r=i.toString()}return this.dataUrl=this.canvasObj.toDataURL(),r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return e},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t}(),p=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(){return function(t,e){this.width=t,this.height=e}}(),y=function(){return function(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}}(),f=function(){return function(t,e){this.isRight=e,this.isBottom=t}}(),g=function(){return function(t){this.id=t}}(),m=function(t){function e(e,i,r,o,n,s,a){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h}return p(e,t),e}(g),x=function(t){function e(e,i,r,o,n,s,a){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=s,h.d=a,h}return p(e,t),e}(g),v=function(){return function(t,e){this.x=t,this.y=e}}(),b=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(null)],i.prototype,"size",void 0),w([e.Property("")],i.prototype,"color",void 0),w([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),w([e.Property("Normal")],i.prototype,"fontWeight",void 0),w([e.Property("Normal")],i.prototype,"fontStyle",void 0),w([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property("")],i.prototype,"color",void 0),w([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),w([e.Property(0)],i.prototype,"width",void 0),w([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),O=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new d(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),l=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),p,new u(i,i),"",r,null)),o++}h.appendChild(s)},h.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),h=new v(0,0),l=new v(0,0),d=n(this.element.id+"_svg"),c=n(this.element.id+"_group"),p=n(this.element.id+"_path"),u=!1,g=!1,m=!1,x=0,b=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(s=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(s=this.tooltipLocation(t,i,h,l),this.inverted?x=(g=s.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=s.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0),S="M "+(3*this.marginX+(g||u||m?0:this.arrowPadding))+" "+w+"L "+(s.width+(g||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});c.appendChild(L)}var P=this.border.width/2,O=new y(P+x,P+b,s.width-P,s.height-P);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),d.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),p.setAttribute("d",o(this.rx,this.ry,O,h,this.arrowPadding,u,m,g,l.x,l.y,this.tipRadius)),this.enableShadow){var A=this.element.id+"_shadow";p.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var k='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';k+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',k+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id","SVG_tooltip_definition"),c.appendChild(C),C.innerHTML=k}return p.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!g&&!u&&!m,s),new f(m,!g&&!u&&!m)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,a,h,d=0,c=0,p=0,y=e.extend({},this.textStyle,null,!0).properties,f=n(this.element.id+"_group"),g="";this.findFormattedText();var x=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==x?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var S=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,P="Normal",O=this.themeStyle.tooltipLightLabel,A=22/parseFloat("13px")*parseFloat(y.size);t||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s("SVG_tooltip_definition"));for(var k=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=l(k,y,null,f),E=0,N=this.formattedText.length;E<N;E++){var T=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==T[0]){r(this.formattedText[E],y),0===E&&""!==x||this.markerPoint.push((""!==x?this.marginY:0)+k.y+d);for(var _=0,R=T.length;_<R;_++){p=0,w=!0,d+=A;for(var I=0,j=(i=T[_].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;I<j;I++)a=i[I],/\S/.test(a)||""===a||(a=" "),(!w&&" "===a||""!==a.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(p+=" "!==a?4:0,w&&!b?(h={x:2*this.marginX+(S+L),dy:A+(w?v:0),fill:""},v=null):h=b&&w?{x:""===x?2*this.marginX+(S+L):2*this.marginX}:{},w=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),a.indexOf("<b>")>-1?(P="bold",O=this.themeStyle.tooltipBoldLabel,g="font-weight:"+P,y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)):(g="bold"===P?"font-weight:"+P:"",y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)),a.indexOf("</b>")>-1&&(P="Normal",O=this.themeStyle.tooltipLightLabel),o.textContent=a=a.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),p+=r(a,y).width,""!==g&&o.setAttribute("style",g),b=!1);p-=4,c=Math.max(c,p)}}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=S+L;var B=C.childNodes[0];if(""!==x&&B){y.fontWeight="bold";var U=(this.elementSize.width+2*this.padding)/2-r(x,y).width/2;B.setAttribute("x",U.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});a&&a.length>0;)h.appendChild(a[0]);o.appendChild(h);var l=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new u(l.width,l.height);var d=this.tooltipLocation(t,i,new v(0,0),new v(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new y(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new v(e.x,e.y),n=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(o=new v(o.x+h+a,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-a-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+a),o.y<=c&&(i.y-=c-o.y,r.y-=c-o.y,o.y=c),o.y+s>=c+t.height&&(i.y+=o.y+s-(c+t.height),r.y+=o.y+s-(c+t.height),o.y-=o.y+s-(c+t.height)),i.y+this.arrowPadding/2>s-this.ry&&(i.y=s-this.ry-this.arrowPadding/2,r.y=s,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new v(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=n/2,(o.y<c||this.isNegative)&&(o.y=(e.y<0?0:e.y)+l+a),o.y+s+this.arrowPadding>c+t.height&&(o.y=(e.y>t.height?t.height:e.y)+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new y(o.x,o.y,n,s)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),s=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=s+r*(i.y-s)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){return this.addOnPersist([])},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},w([e.Property(!1)],h.prototype,"enable",void 0),w([e.Property(!1)],h.prototype,"shared",void 0),w([e.Property(!0)],h.prototype,"enableShadow",void 0),w([e.Property(null)],h.prototype,"fill",void 0),w([e.Property("")],h.prototype,"header",void 0),w([e.Property(.75)],h.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],h.prototype,"textStyle",void 0),w([e.Property(null)],h.prototype,"template",void 0),w([e.Property(!0)],h.prototype,"enableAnimation",void 0),w([e.Property(!1)],h.prototype,"inverted",void 0),w([e.Property(!1)],h.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},L)],h.prototype,"border",void 0),w([e.Property([])],h.prototype,"content",void 0),w([e.Property(10)],h.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"clipBounds",void 0),w([e.Property([])],h.prototype,"palette",void 0),w([e.Property([])],h.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"location",void 0),w([e.Property(0)],h.prototype,"offset",void 0),w([e.Property(2)],h.prototype,"rx",void 0),w([e.Property(2)],h.prototype,"ry",void 0),w([e.Property(5)],h.prototype,"marginX",void 0),w([e.Property(5)],h.prototype,"marginY",void 0),w([e.Property(12)],h.prototype,"arrowPadding",void 0),w([e.Property(null)],h.prototype,"data",void 0),w([e.Property("Material")],h.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),w([e.Event()],h.prototype,"tooltipRender",void 0),w([e.Event()],h.prototype,"loaded",void 0),w([e.Event()],h.prototype,"animationComplete",void 0),h=w([e.NotifyPropertyChanges],h)}(e.Component);t.TextStyle=S,t.TooltipBorder=L,t.AreaBounds=P,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.findDirection=o,t.Size=u,t.Rect=y,t.Side=f,t.CustomizeOption=g,t.TextOption=m,t.getElement=n,t.removeElement=s,t.drawSymbol=a,t.calculateShapes=h,t.PathOption=x,t.textElement=l,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=c,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ej2-svg-base.umd.min.js.map
/*!
* filename: ej2-svg-base.min.js
* version : 17.1.1-beta
* version : 17.1.32-beta
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -10,3 +10,3 @@ * Use of this code is subject to the terms of our license.

*/
this.ej=this.ej||{},this.ej.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new l(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,a,s,h,p,d){var l="",c=i.x,y=i.y,m=i.x+i.width,u=i.y+i.height;return d=d||0,n?(l=(l=l.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(m-t)+" "+y+" Q "+m+" "+y+" "+m+" "+(y+e))).concat(" L "+m+" "+(u-e)+" Q "+m+" "+u+" "+(m-t)+" "+u),0!==o&&(l=(l=l.concat(" L "+(r.x+o/2)+" "+u)).concat(" L "+(h+d)+" "+(u+o-d)),l+=" Q "+h+" "+(u+o)+" "+(h-d)+" "+(u+o-d)),l=r.x-o/2>c?l.concat(" L "+(r.x-o/2)+" "+u+" L "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u-e)+" z"):0===o?l.concat(" L "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u-e)+" z"):l.concat(" L "+c+" "+(u+e)+" z")):a?(l=(l=l.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y+" L "+(r.x-o/2)+" "+y)).concat(" L "+(h-d)+" "+(r.y+d)),l=(l=(l+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+y+" L "+(m-t)+" "+y+" Q "+m+" "+y+" "+m+" "+(y+e))).concat(" L "+m+" "+(u-e)+" Q "+m+" "+u+" "+(m-t)+" "+u+" L "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u-e)+" z")):s?(l=(l=(l=l.concat("M "+c+" "+(y+e)+" Q "+c+" "+y+" "+(c+t)+" "+y)).concat(" L "+(m-t)+" "+y+" Q "+m+" "+y+" "+m+" "+(y+e)+" L "+m+" "+(r.y-o/2))).concat(" L "+(m+o-d)+" "+(p-d)),l=(l=(l+=" Q "+(m+o)+" "+p+" "+(m+o-d)+" "+(p+d)).concat(" L "+m+" "+(r.y+o/2)+" L "+m+" "+(u-e)+" Q "+m+" "+u+" "+(m-t)+" "+u)).concat(" L "+(c+t)+" "+u+" Q "+c+" "+u+" "+c+" "+(u-e)+" z")):(l=(l=l.concat("M "+(c+t)+" "+y+" Q "+c+" "+y+" "+c+" "+(y+e)+" L "+c+" "+(r.y-o/2))).concat(" L "+(c-o+d)+" "+(p-d)),l=(l=(l+=" Q "+(c-o)+" "+p+" "+(c-o+d)+" "+(p+d)).concat(" L "+c+" "+(r.y+o/2)+" L "+c+" "+(u-e)+" Q "+c+" "+u+" "+(c+t)+" "+u)).concat(" L "+(m-t)+" "+u+" Q "+m+" "+u+" "+m+" "+(u-e)+" L "+m+" "+(y+e)+" Q "+m+" "+y+" "+(m-t)+" "+y+" z")),l}function n(t){return document.getElementById(t)}function a(t){var i=n(t);i&&e.remove(i)}function s(t,i,r,o,n,a){var s=new e.SvgRenderer(""),p=h(t,r,i,n,o),d=s["draw"+p.functionName](p.renderOption);return d.setAttribute("aria-label",a),d}function h(t,i,r,o,n){var a,s="Path",h=i.width,p=i.height,d=t.x,l=t.y,c=t.x+-h/2,y=t.y+-p/2;switch(r){case"Circle":case"Bubble":s="Ellipse",e.merge(o,{rx:h/2,ry:p/2,cx:d,cy:l});break;case"Cross":a="M "+c+" "+l+" L "+(d+h/2)+" "+l+" M "+d+" "+(l+p/2)+" L "+d+" "+(l+-p/2),e.merge(o,{d:a});break;case"HorizontalLine":a="M "+c+" "+l+" L "+(d+h/2)+" "+l,e.merge(o,{d:a});break;case"VerticalLine":a="M "+d+" "+(l+p/2)+" L "+d+" "+(l+-p/2),e.merge(o,{d:a});break;case"Diamond":a="M "+c+" "+l+" L "+d+" "+(l+-p/2)+" L "+(d+h/2)+" "+l+" L "+d+" "+(l+p/2)+" L "+c+" "+l+" z",e.merge(o,{d:a});break;case"Rectangle":a="M "+c+" "+(l+-p/2)+" L "+(d+h/2)+" "+(l+-p/2)+" L "+(d+h/2)+" "+(l+p/2)+" L "+c+" "+(l+p/2)+" L "+c+" "+(l+-p/2)+" z",e.merge(o,{d:a});break;case"Triangle":a="M "+c+" "+(l+p/2)+" L "+d+" "+(l+-p/2)+" L "+(d+h/2)+" "+(l+p/2)+" L "+c+" "+(l+p/2)+" z",e.merge(o,{d:a});break;case"InvertedTriangle":a="M "+(d+h/2)+" "+(l-p/2)+" L "+d+" "+(l+p/2)+" L "+(d-h/2)+" "+(l-p/2)+" L "+(d+h/2)+" "+(l-p/2)+" z",e.merge(o,{d:a});break;case"Pentagon":for(var m=void 0,u=void 0,f=0;f<=5;f++)m=h/2*Math.cos(Math.PI/180*(72*f)),u=p/2*Math.sin(Math.PI/180*(72*f)),a=0===f?"M "+(d+m)+" "+(l+u)+" ":a.concat("L "+(d+m)+" "+(l+u)+" ");a=a.concat("Z"),e.merge(o,{d:a});break;case"Image":s="Image",e.merge(o,{href:n,height:p,width:h,x:c,y:y})}return{renderOption:o,functionName:s}}function p(t,i,r,o){var n,a,s={},h=new e.SvgRenderer("");return s={id:t.id,x:t.x,y:t.y,fill:r,"font-size":i.size,"font-style":i.fontStyle,"font-family":i.fontFamily,"font-weight":i.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:i.opacity,"dominant-baseline":t.baseLine},a="string"==typeof t.text?t.text:t.text[0],n=h.createText(s,a),o.appendChild(n),n}var d=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),l=function(){function t(t,e){this.width=t,this.height=e}return t}(),c=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),y=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),m=function(){function t(t){this.id=t}return t}(),u=function(t){function e(e,i,r,o,n,a,s){void 0===a&&(a="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=a,h.baseLine=s,h}return d(e,t),e}(m),f=function(t){function e(e,i,r,o,n,a,s){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=a,h.d=s,h}return d(e,t),e}(m),g=function(){function t(t,e){this.x=t,this.y=e}return t}(),v=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),x=function(t,e,i,r){var o,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(n<3?o(a):n>3?o(e,i,a):o(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a},w=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return v(i,t),x([e.Property(null)],i.prototype,"size",void 0),x([e.Property("")],i.prototype,"color",void 0),x([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),x([e.Property("Normal")],i.prototype,"fontWeight",void 0),x([e.Property("Normal")],i.prototype,"fontStyle",void 0),x([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),b=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return v(i,t),x([e.Property("")],i.prototype,"color",void 0),x([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return v(i,t),x([e.Property(0)],i.prototype,"x",void 0),x([e.Property(0)],i.prototype,"y",void 0),x([e.Property(0)],i.prototype,"width",void 0),x([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return v(i,t),x([e.Property(0)],i.prototype,"x",void 0),x([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),S=function(t){function h(e,i){return t.call(this,e,i)||this}return v(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new e.SvgRenderer(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,a=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),p=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var y=c[d];r=new f(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&a.appendChild(s(new g(p,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),y,new l(i,i),"",r,null)),o++}h.appendChild(a)},h.prototype.renderTooltipElement=function(t,i){var a,s=n(this.element.id),h=new g(0,0),p=new g(0,0),d=n(this.element.id+"_svg"),l=n(this.element.id+"_group"),m=n(this.element.id+"_path"),u=!1,f=!1,v=!1,x=0,w=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(a=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(a=this.tooltipLocation(t,i,h,p),this.inverted?x=(f=a.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(v=!(u=a.y<i.y+this.clipBounds.y),w=u?0:this.arrowPadding)),""!==this.header){var b=r(this.header,this.textStyle).height+2*this.marginY+(v?this.arrowPadding:0),P="M "+(3*this.marginX+(f||u||v?0:this.arrowPadding))+" "+b+"L "+(a.width+(f||u||v?0:this.arrowPadding)-2*this.marginX)+" "+b,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:P});l.appendChild(L)}var S=this.border.width/2,_=new c(S+x,S+w,a.width-S,a.height-S);if(l.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(s,a.x,a.y):this.animateTooltipDiv(s,a),d.setAttribute("height",(a.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(a.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),m.setAttribute("d",o(this.rx,this.ry,_,h,this.arrowPadding,u,v,f,p.x,p.y,this.tipRadius)),this.enableShadow){m.setAttribute("filter",e.Browser.isIE?"":"url(#chart_shadow_tooltip)");var T='<filter id="chart_shadow_tooltip" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';T+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',T+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var A=this.renderer.createDefs();A.setAttribute("id","SVG_tooltip_definition"),l.appendChild(A),A.innerHTML=T}return m.setAttribute("stroke",this.border.color),this.changeText(new g(x,w),v,!f&&!u&&!v,a),new y(v,!f&&!u&&!v)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,s,h,d=0,c=0,y=0,m=e.extend({},this.textStyle,null,!0).properties,f=n(this.element.id+"_group"),g="";this.findFormattedText();var v=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),x=""!==v?this.marginY:0,w=!0,b=!0;this.markerPoint=[];var P=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,S="Normal",_=this.themeStyle.tooltipLightLabel,T=22/parseFloat("13px")*parseFloat(m.size);t||(a(this.element.id+"_text"),a(this.element.id+"_header_path"),a(this.element.id+"_trackball_group"),a("SVG_tooltip_definition"));for(var A=new u(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=p(A,m,null,f),k=0,z=this.formattedText.length;k<z;k++){var F=this.formattedText[k].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==F[0]){r(this.formattedText[k],m),0===k&&""!==v||this.markerPoint.push((""!==v?this.marginY:0)+A.y+d);for(var M=0,B=F.length;M<B;M++){y=0,b=!0,d+=T;for(var R=0,Q=(i=F[M].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;R<Q;R++)s=i[R],/\S/.test(s)||""===s||(s=" "),(!b&&" "===s||""!==s.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(y+=" "!==s?4:0,b&&!w?(h={x:2*this.marginX+(P+L),dy:T+(b?x:0),fill:""},x=null):h=w&&b?{x:""===v?2*this.marginX+(P+L):2*this.marginX}:{},b=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),s.indexOf("<b>")>-1?(S="bold",_=this.themeStyle.tooltipBoldLabel,g="font-weight:"+S,m.fontWeight=S,o.setAttribute("fill",this.textStyle.color||_)):(g="bold"===S?"font-weight:"+S:"",m.fontWeight=S,o.setAttribute("fill",this.textStyle.color||_)),s.indexOf("</b>")>-1&&(S="Normal",_=this.themeStyle.tooltipLightLabel),o.textContent=s=s.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),y+=r(s,m).width,""!==g&&o.setAttribute("style",g),w=!1);y-=4,c=Math.max(c,y)}}}this.elementSize=new l(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=P+L;var E=C.childNodes[0];if(""!==v&&E){m.fontWeight="bold";var O=(this.elementSize.width+2*this.padding)/2-r(v,m).width/2;E.setAttribute("x",O.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),a=o.firstElementChild;if(a&&e.remove(a),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var s=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});s&&s.length>0;)h.appendChild(s[0]);o.appendChild(h);var p=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new l(p.width,p.height);var d=this.tooltipLocation(t,i,new g(0,0),new g(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new c(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new g(e.x,e.y),n=this.elementSize.width+2*this.marginX,a=this.elementSize.height+2*this.marginY,s=this.offset,h=this.clipBounds.x,p=this.clipBounds.y,d=t.x,l=t.y;return this.inverted?(o=new g(o.x+h+s,o.y+p-this.elementSize.height/2-this.padding),i.y=r.y=a/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-s-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+s),o.y<=l&&(i.y-=l-o.y,r.y-=l-o.y,o.y=l),o.y+a>=l+t.height&&(i.y+=o.y+a-(l+t.height),r.y+=o.y+a-(l+t.height),o.y-=o.y+a-(l+t.height)),i.y+this.arrowPadding/2>a-this.ry&&(i.y=a-this.ry-this.arrowPadding/2,r.y=a,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new g(o.x+h-this.elementSize.width/2-this.padding,o.y+p-this.elementSize.height-2*this.padding-this.arrowPadding-s),i.x=r.x=n/2,(o.y<l||this.isNegative)&&(o.y=(e.y<0?0:e.y)+p+s),o.y+a+this.arrowPadding>l+t.height&&(o.y=(e.y>t.height?t.height:e.y)+p-this.elementSize.height-2*this.padding-this.arrowPadding-s),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new c(o.x,o.y,n,a)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),a=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=a+r*(i.y-a)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},x([e.Property(!1)],h.prototype,"enable",void 0),x([e.Property(!1)],h.prototype,"shared",void 0),x([e.Property(!0)],h.prototype,"enableShadow",void 0),x([e.Property(null)],h.prototype,"fill",void 0),x([e.Property("")],h.prototype,"header",void 0),x([e.Property(.75)],h.prototype,"opacity",void 0),x([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},w)],h.prototype,"textStyle",void 0),x([e.Property(null)],h.prototype,"template",void 0),x([e.Property(!0)],h.prototype,"enableAnimation",void 0),x([e.Property(!1)],h.prototype,"inverted",void 0),x([e.Property(!1)],h.prototype,"isNegative",void 0),x([e.Complex({color:"#cccccc",width:.5},b)],h.prototype,"border",void 0),x([e.Property([])],h.prototype,"content",void 0),x([e.Property(10)],h.prototype,"markerSize",void 0),x([e.Complex({x:0,y:0},L)],h.prototype,"clipBounds",void 0),x([e.Property([])],h.prototype,"palette",void 0),x([e.Property([])],h.prototype,"shapes",void 0),x([e.Complex({x:0,y:0},L)],h.prototype,"location",void 0),x([e.Property(0)],h.prototype,"offset",void 0),x([e.Property(2)],h.prototype,"rx",void 0),x([e.Property(2)],h.prototype,"ry",void 0),x([e.Property(5)],h.prototype,"marginX",void 0),x([e.Property(5)],h.prototype,"marginY",void 0),x([e.Property(12)],h.prototype,"arrowPadding",void 0),x([e.Property(null)],h.prototype,"data",void 0),x([e.Property("Material")],h.prototype,"theme",void 0),x([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),x([e.Event()],h.prototype,"tooltipRender",void 0),x([e.Event()],h.prototype,"loaded",void 0),x([e.Event()],h.prototype,"animationComplete",void 0),h=x([e.NotifyPropertyChanges],h)}(e.Component);return t.TextStyle=w,t.TooltipBorder=b,t.AreaBounds=P,t.ToolLocation=L,t.Tooltip=S,t.getTooltipThemeColor=i,t}({},ej.base),this.ejs=ej;
this.ej=this.ej||{},this.ej.svgbase=function(t,e){"use strict";function i(t){var e;switch(t){case"Highcontrast":e={tooltipFill:"#ffffff",tooltipBoldLabel:"#000000",tooltipLightLabel:"#000000",tooltipHeaderLine:"#969696"};break;case"MaterialDark":case"FabricDark":case"BootstrapDark":e={tooltipFill:"#F4F4F4",tooltipBoldLabel:"#282727",tooltipLightLabel:"#333232",tooltipHeaderLine:"#9A9A9A"};break;case"Bootstrap4":e={tooltipFill:"rgba(0, 0, 0, 0.9)",tooltipBoldLabel:"rgba(255, 255, 255)",tooltipLightLabel:"rgba(255, 255, 255, 0.9)",tooltipHeaderLine:"rgba(255, 255, 255, 0.2)"};break;default:e={tooltipFill:"rgba(0, 8, 22, 0.75)",tooltipBoldLabel:"#ffffff",tooltipLightLabel:"#dbdbdb",tooltipHeaderLine:"#ffffff"}}return e}function r(t,i){var r=document.getElementById("chartmeasuretext");return null===r&&(r=e.createElement("text",{id:"chartmeasuretext"}),document.body.appendChild(r)),r.innerHTML=t,r.style.position="absolute",r.style.fontSize=i.size,r.style.fontWeight=i.fontWeight,r.style.fontStyle=i.fontStyle,r.style.fontFamily=i.fontFamily,r.style.visibility="hidden",r.style.top="-100",r.style.left="0",r.style.whiteSpace="nowrap",r.style.lineHeight="normal",new u(r.clientWidth,r.clientHeight)}function o(t,e,i,r,o,n,s,a,h,l,d){var c="",p=i.x,u=i.y,y=i.x+i.width,g=i.y+i.height;return d=d||0,n?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g),0!==o&&(c=(c=c.concat(" L "+(r.x+o/2)+" "+g)).concat(" L "+(h+d)+" "+(g+o-d)),c+=" Q "+h+" "+(g+o)+" "+(h-d)+" "+(g+o-d)),c=r.x-o/2>p?c.concat(" L "+(r.x-o/2)+" "+g+" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z"):0===o?c.concat(" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z"):c.concat(" L "+p+" "+(g+e)+" z")):s?(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u+" L "+(r.x-o/2)+" "+u)).concat(" L "+(h-d)+" "+(r.y+d)),c=(c=(c+=" Q "+h+" "+r.y+" "+(h+d)+" "+(r.y+d)).concat(" L "+(r.x+o/2)+" "+u+" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e))).concat(" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g+" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z")):a?(c=(c=(c=c.concat("M "+p+" "+(u+e)+" Q "+p+" "+u+" "+(p+t)+" "+u)).concat(" L "+(y-t)+" "+u+" Q "+y+" "+u+" "+y+" "+(u+e)+" L "+y+" "+(r.y-o/2))).concat(" L "+(y+o-d)+" "+(l-d)),c=(c=(c+=" Q "+(y+o)+" "+l+" "+(y+o-d)+" "+(l+d)).concat(" L "+y+" "+(r.y+o/2)+" L "+y+" "+(g-e)+" Q "+y+" "+g+" "+(y-t)+" "+g)).concat(" L "+(p+t)+" "+g+" Q "+p+" "+g+" "+p+" "+(g-e)+" z")):(c=(c=c.concat("M "+(p+t)+" "+u+" Q "+p+" "+u+" "+p+" "+(u+e)+" L "+p+" "+(r.y-o/2))).concat(" L "+(p-o+d)+" "+(l-d)),c=(c=(c+=" Q "+(p-o)+" "+l+" "+(p-o+d)+" "+(l+d)).concat(" L "+p+" "+(r.y+o/2)+" L "+p+" "+(g-e)+" Q "+p+" "+g+" "+(p+t)+" "+g)).concat(" L "+(y-t)+" "+g+" Q "+y+" "+g+" "+y+" "+(g-e)+" L "+y+" "+(u+e)+" Q "+y+" "+u+" "+(y-t)+" "+u+" z")),c}function n(t){return document.getElementById(t)}function s(t){var i=n(t);i&&e.remove(i)}function a(t,e,i,r,o,n){var s=new d(""),a=h(t,i,e,o,r),l=s["draw"+a.functionName](a.renderOption);return l.setAttribute("aria-label",n),l}function h(t,i,r,o,n){var s,a="Path",h=i.width,l=i.height,d=t.x,c=t.y,p=t.x+-h/2,u=t.y+-l/2;switch(r){case"Circle":case"Bubble":a="Ellipse",e.merge(o,{rx:h/2,ry:l/2,cx:d,cy:c});break;case"Cross":s="M "+p+" "+c+" L "+(d+h/2)+" "+c+" M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"HorizontalLine":s="M "+p+" "+c+" L "+(d+h/2)+" "+c,e.merge(o,{d:s});break;case"VerticalLine":s="M "+d+" "+(c+l/2)+" L "+d+" "+(c+-l/2),e.merge(o,{d:s});break;case"Diamond":s="M "+p+" "+c+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+c+" L "+d+" "+(c+l/2)+" L "+p+" "+c+" z",e.merge(o,{d:s});break;case"Rectangle":s="M "+p+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" L "+p+" "+(c+-l/2)+" z",e.merge(o,{d:s});break;case"Triangle":s="M "+p+" "+(c+l/2)+" L "+d+" "+(c+-l/2)+" L "+(d+h/2)+" "+(c+l/2)+" L "+p+" "+(c+l/2)+" z",e.merge(o,{d:s});break;case"InvertedTriangle":s="M "+(d+h/2)+" "+(c-l/2)+" L "+d+" "+(c+l/2)+" L "+(d-h/2)+" "+(c-l/2)+" L "+(d+h/2)+" "+(c-l/2)+" z",e.merge(o,{d:s});break;case"Pentagon":for(var y=void 0,g=void 0,f=0;f<=5;f++)y=h/2*Math.cos(Math.PI/180*(72*f)),g=l/2*Math.sin(Math.PI/180*(72*f)),s=0===f?"M "+(d+y)+" "+(c+g)+" ":s.concat("L "+(d+y)+" "+(c+g)+" ");s=s.concat("Z"),e.merge(o,{d:s});break;case"Image":a="Image",e.merge(o,{href:n,height:l,width:h,x:p,y:u})}return{renderOption:o,functionName:a}}function l(t,e,i,r){var o,n,s={},a=new d("");return s={id:t.id,x:t.x,y:t.y,fill:i,"font-size":e.size,"font-style":e.fontStyle,"font-family":e.fontFamily,"font-weight":e.fontWeight,"text-anchor":t.anchor,transform:t.transform,opacity:e.opacity,"dominant-baseline":t.baseLine},n="string"==typeof t.text?t.text:t.text[0],o=a.createText(s,n),r.appendChild(o),o}var d=function(){function t(t){this.svgLink="http://www.w3.org/2000/svg",this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createSvg=function(t){return e.isNullOrUndefined(t.id)&&(t.id=this.rootId+"_svg"),this.svgObj=document.getElementById(t.id),e.isNullOrUndefined(document.getElementById(t.id))&&(this.svgObj=document.createElementNS(this.svgLink,"svg")),this.svgObj=this.setElementAttributes(t,this.svgObj),this.setSVGSize(t.width,t.height),this.svgObj},t.prototype.setSVGSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)||this.width<=0?this.svgObj.setAttribute("width",t?t.toString():o.width.toString()):this.svgObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)||this.height<=0?this.svgObj.setAttribute("height",i?i.toString():"450"):this.svgObj.setAttribute("height",this.height.toString())},t.prototype.drawPath=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"path")),e=this.setElementAttributes(t,e)},t.prototype.drawLine=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"line")),e=this.setElementAttributes(t,e)},t.prototype.drawRectangle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"rect")),e=this.setElementAttributes(t,e)},t.prototype.drawCircle=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"circle")),e=this.setElementAttributes(t,e)},t.prototype.drawPolyline=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polyline")),e=this.setElementAttributes(t,e)},t.prototype.drawEllipse=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"ellipse")),e=this.setElementAttributes(t,e)},t.prototype.drawPolygon=function(t){var e=document.getElementById(t.id);return null===e&&(e=document.createElementNS(this.svgLink,"polygon")),e=this.setElementAttributes(t,e)},t.prototype.drawImage=function(t){var i=document.createElementNS(this.svgLink,"image");return i.setAttributeNS(null,"height",t.height.toString()),i.setAttributeNS(null,"width",t.width.toString()),i.setAttributeNS("http://www.w3.org/1999/xlink","href",t.href),i.setAttributeNS(null,"x",t.x.toString()),i.setAttributeNS(null,"y",t.y.toString()),i.setAttributeNS(null,"id",t.id),i.setAttributeNS(null,"visibility",t.visibility),e.isNullOrUndefined(this.getOptionValue(t,"clip-path"))||i.setAttributeNS(null,"clip-path",this.getOptionValue(t,"clip-path")),e.isNullOrUndefined(t.preserveAspectRatio)||i.setAttributeNS(null,"preserveAspectRatio",t.preserveAspectRatio),i},t.prototype.createText=function(t,i){var r=document.createElementNS(this.svgLink,"text");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTSpan=function(t,i){var r=document.createElementNS(this.svgLink,"tspan");return r=this.setElementAttributes(t,r),e.isNullOrUndefined(i)||(r.textContent=i),r},t.prototype.createTitle=function(t){var e=document.createElementNS(this.svgLink,"title");return e.textContent=t,e},t.prototype.createDefs=function(){return document.createElementNS(this.svgLink,"defs")},t.prototype.createClipPath=function(t){var e=document.createElementNS(this.svgLink,"clipPath");return e=this.setElementAttributes(t,e)},t.prototype.createForeignObject=function(t){var e=document.createElementNS(this.svgLink,"foreignObject");return e=this.setElementAttributes(t,e)},t.prototype.createGroup=function(t){var e=document.createElementNS(this.svgLink,"g");return e=this.setElementAttributes(t,e)},t.prototype.createPattern=function(t,e){var i=document.createElementNS(this.svgLink,e);return i=this.setElementAttributes(t,i)},t.prototype.createRadialGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"radialGradient",cx:r.cx+"%",cy:r.cy+"%",r:r.r+"%",fx:r.fx+"%",fy:r.fy+"%"};this.drawGradient("radialGradient",n,t),o="url(#"+this.rootId+"_"+i+"radialGradient)"}return o},t.prototype.createLinearGradient=function(t,i,r){var o;if(e.isNullOrUndefined(t[0].colorStop))o=t[0].color.toString();else{var n={id:this.rootId+"_"+i+"linearGradient",x1:r.x1+"%",y1:r.y1+"%",x2:r.x2+"%",y2:r.y2+"%"};this.drawGradient("linearGradient",n,t),o="url(#"+this.rootId+"_"+i+"linearGradient)"}return o},t.prototype.drawGradient=function(t,e,i){var r=this.createDefs(),o=document.createElementNS(this.svgLink,t);o=this.setElementAttributes(e,o);for(var n=0;n<i.length;n++){var s=document.createElementNS(this.svgLink,"stop");s.setAttribute("offset",i[n].colorStop),s.setAttribute("stop-color",i[n].color),s.setAttribute("stop-opacity","1"),o.appendChild(s)}return r.appendChild(o),r},t.prototype.drawClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Rect";var r=this.drawRectangle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.drawCircularClipPath=function(t){var e=this.createDefs(),i=this.createClipPath({id:t.id});t.id=t.id+"_Circle";var r=this.drawCircle(t);return i.appendChild(r),e.appendChild(i),e},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=0;r<i.length;r++)e.setAttribute(i[r],t[i[r]]);return e},t}(),c=function(){function t(t){this.rootId=t}return t.prototype.getOptionValue=function(t,e){return t[e]},t.prototype.createCanvas=function(t){var e=document.createElement("canvas");return e.setAttribute("id",this.rootId+"_canvas"),this.ctx=e.getContext("2d"),this.canvasObj=e,this.setCanvasSize(t.width,t.height),this.canvasObj},t.prototype.setCanvasSize=function(t,i){var r=document.getElementById(this.rootId),o=e.isNullOrUndefined(r)?null:r.getBoundingClientRect();e.isNullOrUndefined(this.width)?this.canvasObj.setAttribute("width",t?t.toString():o.width.toString()):this.canvasObj.setAttribute("width",this.width.toString()),e.isNullOrUndefined(this.height)?this.canvasObj.setAttribute("height",i?i.toString():"450"):this.canvasObj.setAttribute("height",this.height.toString())},t.prototype.setAttributes=function(t){this.ctx.lineWidth=this.getOptionValue(t,"stroke-width");var i=this.getOptionValue(t,"stroke-dasharray");if(!e.isNullOrUndefined(i)){var r=i.split(",");this.ctx.setLineDash([parseInt(r[0],10),parseInt(r[1],10)])}this.ctx.strokeStyle=this.getOptionValue(t,"stroke")},t.prototype.drawLine=function(t){this.ctx.save(),this.ctx.beginPath(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.moveTo(t.x1,t.y1),this.ctx.lineTo(t.x2,t.y2),this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawRectangle=function(t){var e=this.ctx,i=t.rx;this.ctx.save(),this.ctx.beginPath(),this.ctx.globalAlpha=this.getOptionValue(t,"opacity"),this.setAttributes(t),this.ctx.rect(t.x,t.y,t.width,t.height),null!==i&&i>=0?this.drawCornerRadius(t):("none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,this.ctx.fillRect(t.x,t.y,t.width,t.height),this.ctx.stroke()),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCornerRadius=function(t){var e=t.rx,i=t.x,r=t.y,o=t.width,n=t.height;"none"===t.fill&&(t.fill="transparent"),this.ctx.fillStyle=t.fill,o<2*e&&(e=o/2),n<2*e&&(e=n/2),this.ctx.beginPath(),this.ctx.moveTo(i+o-e,r),this.ctx.arcTo(i+o,r,i+o,r+n,e),this.ctx.arcTo(i+o,r+n,i,r+n,e),this.ctx.arcTo(i,r+n,i,r,e),this.ctx.arcTo(i,r,i+o,r,e),this.ctx.closePath(),this.ctx.fill(),this.ctx.stroke(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPath=function(t,e){var i=t.d.split(" "),r=this.getOptionValue(t,"stroke-width"),o=this.ctx,n=!0;this.ctx.save(),this.ctx.beginPath(),e&&this.ctx.translate(e[0],e[1]),this.ctx.globalAlpha=t.opacity?t.opacity:this.getOptionValue(t,"fill-opacity"),this.setAttributes(t);for(var s=0;s<i.length;s+=3){var a=parseFloat(i[s+1]),h=parseFloat(i[s+2]);switch(i[s]){case"M":t.innerR||t.cx||this.ctx.moveTo(a,h);break;case"L":t.innerR||this.ctx.lineTo(a,h);break;case"C":var l=parseFloat(i[s+3]),d=parseFloat(i[s+4]),c=parseFloat(i[s+5]),p=parseFloat(i[s+6]);this.ctx.bezierCurveTo(a,h,l,d,c,p),s+=4;break;case"A":t.innerR?n&&(this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.arc(t.x,t.y,t.innerR,t.end,t.start,!t.counterClockWise),n=!1):t.cx?this.ctx.arc(t.cx,t.cy,t.radius,0,2*Math.PI,t.counterClockWise):(this.ctx.moveTo(t.x,t.y),this.ctx.arc(t.x,t.y,t.radius,t.start,t.end,t.counterClockWise),this.ctx.lineTo(t.x,t.y)),s+=5;break;case"z":this.ctx.closePath()}}"none"!==t.fill&&void 0!==t.fill&&(this.ctx.fillStyle=t.fill,this.ctx.fill()),r>0&&this.ctx.stroke(),this.ctx.restore(),this.ctx=o,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawText=function(t,i){var r=this.getOptionValue(t,"font-weight");e.isNullOrUndefined(r)||"regular"!==r.toLowerCase()||(r="normal");var o=this.getOptionValue(t,"font-size"),n=this.getOptionValue(t,"font-family"),s=this.getOptionValue(t,"font-style").toLowerCase()+" "+r+" "+o+" "+n,a=this.getOptionValue(t,"text-anchor"),h=void 0!==t.opacity?t.opacity:1;"middle"===a&&(a="center"),this.ctx.save(),this.ctx.fillStyle=t.fill,this.ctx.font=s,this.ctx.textAlign=a,this.ctx.globalAlpha=h,t.baseline&&(this.ctx.textBaseline=t.baseline);this.ctx.translate(t.x+0,t.y),this.ctx.rotate(t.labelRotation*Math.PI/180),this.ctx.fillText(i,0,0),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawCircle=function(t){var e=this.ctx;this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(t.cx,t.cy,t.r,0,2*Math.PI),this.ctx.fillStyle=t.fill,this.ctx.globalAlpha=t.opacity,this.ctx.fill(),this.setAttributes(t),this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawPolyline=function(t){this.ctx.save(),this.ctx.beginPath();for(var e=t.points.split(" "),i=0;i<e.length-1;i++){var r=e[i].split(","),o=parseFloat(r[0]),n=parseFloat(r[1]);0===i?this.ctx.moveTo(o,n):this.ctx.lineTo(o,n)}this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawEllipse=function(t){var e=this.ctx,i=Math.max(t.rx,t.ry),r=t.rx/i,o=t.ry/i;this.ctx.save(),this.ctx.beginPath(),this.ctx.translate(t.cx,t.cy),this.ctx.save(),this.ctx.scale(r,o),this.ctx.arc(0,0,i,0,2*Math.PI,!1),this.ctx.fillStyle=t.fill,this.ctx.fill(),this.ctx.restore(),this.ctx.lineWidth=this.getOptionValue(t,"stroke-width"),this.ctx.strokeStyle=t.stroke,this.ctx.stroke(),this.ctx.restore(),this.ctx=e,this.dataUrl=this.canvasObj.toDataURL()},t.prototype.drawImage=function(t){this.ctx.save();var i=new Image;e.isNullOrUndefined(t.href)||(i.src=t.href,this.ctx.drawImage(i,t.x,t.y,t.width,t.height)),this.ctx.restore(),this.dataUrl=this.canvasObj.toDataURL()},t.prototype.createLinearGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createLinearGradient(0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.createRadialGradient=function(t){var i;return e.isNullOrUndefined(t[0].colorStop)||(i=this.ctx.createRadialGradient(0,0,0,0,0,this.canvasObj.height)),this.setGradientValues(t,i)},t.prototype.setGradientValues=function(t,i){var r;if(e.isNullOrUndefined(t[0].colorStop))r=t[0].color.toString();else{for(var o=0;o<=t.length-1;o++){var n=t[o].color,s=t[o].colorStop.slice(0,-1),a=parseInt(s,10)/100;i.addColorStop(a,n)}r=i.toString()}return this.dataUrl=this.canvasObj.toDataURL(),r},t.prototype.setElementAttributes=function(t,e){for(var i=Object.keys(t),r=Object.keys(t).map(function(e){return t[e]}),o=0;o<i.length;o++)e.setAttribute(i[o],r[o]);return e},t.prototype.updateCanvasAttributes=function(t){this.setElementAttributes(t,this.canvasObj);var i=this.ctx;if(!e.isNullOrUndefined(this.dataUrl)){var r=new Image;r.onload=function(){i.drawImage(r,0,0)},r.src=this.dataUrl}},t}(),p=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),u=function(){function t(t,e){this.width=t,this.height=e}return t}(),y=function(){function t(t,e,i,r){this.x=t,this.y=e,this.width=i,this.height=r}return t}(),g=function(){function t(t,e){this.isRight=e,this.isBottom=t}return t}(),f=function(){function t(t){this.id=t}return t}(),m=function(t){function e(e,i,r,o,n,s,a){void 0===s&&(s="");var h=t.call(this,e)||this;return h.transform="",h.baseLine="auto",h.x=i,h.y=r,h.anchor=o,h.text=n,h.transform=s,h.baseLine=a,h}return p(e,t),e}(f),x=function(t){function e(e,i,r,o,n,s,a){var h=t.call(this,e)||this;return h.opacity=n,h.fill=i,h.stroke=o,h["stroke-width"]=r,h["stroke-dasharray"]=s,h.d=a,h}return p(e,t),e}(f),v=function(){function t(t,e){this.x=t,this.y=e}return t}(),b=function(){var t=function(e,i){return(t=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])})(e,i)};return function(e,i){function r(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),w=function(t,e,i,r){var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s},S=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(null)],i.prototype,"size",void 0),w([e.Property("")],i.prototype,"color",void 0),w([e.Property("Segoe UI")],i.prototype,"fontFamily",void 0),w([e.Property("Normal")],i.prototype,"fontWeight",void 0),w([e.Property("Normal")],i.prototype,"fontStyle",void 0),w([e.Property(1)],i.prototype,"opacity",void 0),i}(e.ChildProperty),L=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property("")],i.prototype,"color",void 0),w([e.Property(1)],i.prototype,"width",void 0),i}(e.ChildProperty),P=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),w([e.Property(0)],i.prototype,"width",void 0),w([e.Property(0)],i.prototype,"height",void 0),i}(e.ChildProperty),O=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return b(i,t),w([e.Property(0)],i.prototype,"x",void 0),w([e.Property(0)],i.prototype,"y",void 0),i}(e.ChildProperty),A=function(t){function h(e,i){return t.call(this,e,i)||this}return b(h,t),h.prototype.preRender=function(){this.initPrivateVariable(),this.removeSVG(),this.createTooltipElement()},h.prototype.initPrivateVariable=function(){this.renderer=new d(this.element.id),this.themeStyle=i(this.theme),this.formattedText=[],this.padding=5,this.isFirst=!0,this.markerPoint=[]},h.prototype.removeSVG=function(){var t=document.getElementById(this.element.id+"_svg"),i=document.getElementById(this.element.id+"parent_template");t&&t.parentNode&&e.remove(t),i&&i.parentNode&&e.remove(i)},h.prototype.render=function(){if(this.fadeOuted=!1,this.template)this.updateTemplateFn(),this.createTemplate(this.areaBounds,this.location);else{this.renderText(this.isFirst);var t={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",t);var i=this.renderTooltipElement(this.areaBounds,this.location);this.drawMarker(i.isBottom,i.isRight,this.markerSize)}this.trigger("loaded",{tooltip:this});var r=document.getElementById("chartmeasuretext");r&&e.remove(r)},h.prototype.createTooltipElement=function(){if(this.textElements=[],!this.template||this.shared){var t=this.renderer.createSvg({id:this.element.id+"_svg"});this.element.appendChild(t);var e=this.renderer.createGroup({id:this.element.id+"_group"});t.appendChild(e);var i=this.renderer.drawPath({id:this.element.id+"_path","stroke-width":this.border.width,fill:this.fill||this.themeStyle.tooltipFill,opacity:this.opacity,stroke:this.border.color});e.appendChild(i)}},h.prototype.drawMarker=function(t,e,i){if(this.shapes.length<=0)return null;for(var r,o=0,s=this.renderer.createGroup({id:this.element.id+"_trackball_group"}),h=n(this.element.id+"_group"),l=2*this.marginX+i/2+(e?this.arrowPadding:0),d=0,c=this.shapes;d<c.length;d++){var p=c[d];r=new x(this.element.id+"_Trackball_"+o,this.palette[o],1,"#cccccc",1,null),this.markerPoint[o]&&s.appendChild(a(new v(l,this.markerPoint[o]-this.padding+(t?this.arrowPadding:0)),p,new u(i,i),"",r,null)),o++}h.appendChild(s)},h.prototype.renderTooltipElement=function(t,i){var s,a=n(this.element.id),h=new v(0,0),l=new v(0,0),d=n(this.element.id+"_svg"),c=n(this.element.id+"_group"),p=n(this.element.id+"_path"),u=!1,f=!1,m=!1,x=0,b=0;if(this.tipRadius=1,""!==this.header&&(this.elementSize.height+=this.marginY),this.content.length>1?(s=this.sharedTooltipLocation(t,this.location.x,this.location.y),u=!0):(s=this.tooltipLocation(t,i,h,l),this.inverted?x=(f=s.x<i.x+this.clipBounds.x)?0:this.arrowPadding:(m=!(u=s.y<i.y+this.clipBounds.y),b=u?0:this.arrowPadding)),""!==this.header){var w=r(this.header,this.textStyle).height+2*this.marginY+(m?this.arrowPadding:0),S="M "+(3*this.marginX+(f||u||m?0:this.arrowPadding))+" "+w+"L "+(s.width+(f||u||m?0:this.arrowPadding)-2*this.marginX)+" "+w,L=this.renderer.drawPath({id:this.element.id+"_header_path","stroke-width":1,fill:null,opacity:.8,stroke:this.themeStyle.tooltipHeaderLine,d:S});c.appendChild(L)}var P=this.border.width/2,O=new y(P+x,P+b,s.width-P,s.height-P);if(c.setAttribute("opacity","1"),!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(a,s.x,s.y):this.animateTooltipDiv(a,s),d.setAttribute("height",(s.height+this.border.width+(this.inverted?0:this.arrowPadding)).toString()),d.setAttribute("width",(s.width+this.border.width+(this.inverted?this.arrowPadding:0)).toString()),d.setAttribute("opacity","1"),p.setAttribute("d",o(this.rx,this.ry,O,h,this.arrowPadding,u,m,f,l.x,l.y,this.tipRadius)),this.enableShadow){var A=this.element.id+"_shadow";p.setAttribute("filter",e.Browser.isIE?"":"url(#"+A+")");var k='<filter id="'+A+'" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';k+='<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>',k+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var C=this.renderer.createDefs();C.setAttribute("id","SVG_tooltip_definition"),c.appendChild(C),C.innerHTML=k}return p.setAttribute("stroke",this.border.color),this.changeText(new v(x,b),m,!f&&!u&&!m,s),new g(m,!f&&!u&&!m)},h.prototype.changeText=function(t,e,i,r){var o=document.getElementById(this.element.id+"_text");e&&o.setAttribute("transform","translate(0,"+this.arrowPadding+")"),i&&o.setAttribute("transform","translate("+this.arrowPadding+" 0)")},h.prototype.findFormattedText=function(){this.formattedText=[],""!==this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim()&&(this.formattedText=this.formattedText.concat(this.header)),this.formattedText=this.formattedText.concat(this.content)},h.prototype.renderText=function(t){var i,o,a,h,d=0,c=0,p=0,y=e.extend({},this.textStyle,null,!0).properties,g=n(this.element.id+"_group"),f="";this.findFormattedText();var x=this.header.replace(/<b>/g,"").replace(/<\/b>/g,"").trim(),v=""!==x?this.marginY:0,b=!0,w=!0;this.markerPoint=[];var S=this.shapes.length>0?10:0,L=this.shapes.length>0?5:0,P="Normal",O=this.themeStyle.tooltipLightLabel,A=22/parseFloat("13px")*parseFloat(y.size);t||(s(this.element.id+"_text"),s(this.element.id+"_header_path"),s(this.element.id+"_trackball_group"),s("SVG_tooltip_definition"));for(var k=new m(this.element.id+"_text",2*this.marginX,2*this.marginY+2*this.padding+(2===this.marginY?3:0),"start",""),C=l(k,y,null,g),E=0,N=this.formattedText.length;E<N;E++){var T=this.formattedText[E].replace(/<(b|strong)>/g,"<b>").replace(/<\/(b|strong)>/g,"</b>").split(/<br.*?>/g);if(""!==T[0]){r(this.formattedText[E],y),0===E&&""!==x||this.markerPoint.push((""!==x?this.marginY:0)+k.y+d);for(var _=0,R=T.length;_<R;_++){p=0,w=!0,d+=A;for(var I=0,j=(i=T[_].replace(/<b>/g,"<br><b>").replace(/<\/b>/g,"</b><br>").replace(/:/g,"<br>‎:<br>").split("<br>")).length;I<j;I++)a=i[I],/\S/.test(a)||""===a||(a=" "),(!w&&" "===a||""!==a.replace(/<b>/g,"").replace(/<\/b>/g,"").trim())&&(p+=" "!==a?4:0,w&&!b?(h={x:2*this.marginX+(S+L),dy:A+(w?v:0),fill:""},v=null):h=b&&w?{x:""===x?2*this.marginX+(S+L):2*this.marginX}:{},w=!1,o=this.renderer.createTSpan(h,""),C.appendChild(o),a.indexOf("<b>")>-1?(P="bold",O=this.themeStyle.tooltipBoldLabel,f="font-weight:"+P,y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)):(f="bold"===P?"font-weight:"+P:"",y.fontWeight=P,o.setAttribute("fill",this.textStyle.color||O)),a.indexOf("</b>")>-1&&(P="Normal",O=this.themeStyle.tooltipLightLabel),o.textContent=a=a.replace(/<[a-zA-Z\/](.|\n)*?>/g,""),p+=r(a,y).width,""!==f&&o.setAttribute("style",f),b=!1);p-=4,c=Math.max(c,p)}}}this.elementSize=new u(c+(c>0?2*this.marginX:0),d),this.elementSize.width+=S+L;var B=C.childNodes[0];if(""!==x&&B){y.fontWeight="bold";var U=(this.elementSize.width+2*this.padding)/2-r(x,y).width/2;B.setAttribute("x",U.toString())}},h.prototype.createTemplate=function(t,i){var r={cancel:!1,name:"tooltipRender",tooltip:this};this.trigger("tooltipRender",r);var o=document.getElementById(this.element.id),s=o.firstElementChild;if(s&&e.remove(s),r.cancel)e.remove(n(this.element.id+"_tooltip"));else{for(var a=this.templateFn(this.data),h=e.createElement("div",{id:this.element.id+"parent_template"});a&&a.length>0;)h.appendChild(a[0]);o.appendChild(h);var l=this.element.getBoundingClientRect();this.padding=0,this.elementSize=new u(l.width,l.height);var d=this.tooltipLocation(t,i,new v(0,0),new v(0,0));!this.enableAnimation||this.shared||this.isFirst?this.updateDiv(this.element,d.x,d.y):this.animateTooltipDiv(this.element,d)}},h.prototype.sharedTooltipLocation=function(t,e,i){var r=this.elementSize.width+2*this.marginX,o=this.elementSize.height+2*this.marginY,n=new y(e+2*this.padding,i-o-this.padding,r,o);return n.y<t.y&&(n.y+=n.height+2*this.padding),n.x+n.width>t.x+t.width&&(n.x-=n.width+4*this.padding),n},h.prototype.tooltipLocation=function(t,e,i,r){var o=new v(e.x,e.y),n=this.elementSize.width+2*this.marginX,s=this.elementSize.height+2*this.marginY,a=this.offset,h=this.clipBounds.x,l=this.clipBounds.y,d=t.x,c=t.y;return this.inverted?(o=new v(o.x+h+a,o.y+l-this.elementSize.height/2-this.padding),i.y=r.y=s/2,(o.x+n+this.arrowPadding>d+t.width||this.isNegative)&&(o.x=(e.x>t.width?t.width:e.x)+h-a-(n+this.arrowPadding)),o.x<d&&(o.x=(e.x<0?0:e.x)+h+a),o.y<=c&&(i.y-=c-o.y,r.y-=c-o.y,o.y=c),o.y+s>=c+t.height&&(i.y+=o.y+s-(c+t.height),r.y+=o.y+s-(c+t.height),o.y-=o.y+s-(c+t.height)),i.y+this.arrowPadding/2>s-this.ry&&(i.y=s-this.ry-this.arrowPadding/2,r.y=s,this.tipRadius=0),i.y-this.arrowPadding/2<this.ry&&(i.y=this.ry+this.arrowPadding/2,r.y=0,this.tipRadius=0)):(o=new v(o.x+h-this.elementSize.width/2-this.padding,o.y+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),i.x=r.x=n/2,(o.y<c||this.isNegative)&&(o.y=(e.y<0?0:e.y)+l+a),o.y+s+this.arrowPadding>c+t.height&&(o.y=(e.y>t.height?t.height:e.y)+l-this.elementSize.height-2*this.padding-this.arrowPadding-a),r.x=n/2,o.x<d&&(i.x-=d-o.x,r.x-=d-o.x,o.x=d),o.x+n>d+t.width&&(i.x+=o.x+n-(d+t.width),r.x+=o.x+n-(d+t.width),o.x-=o.x+n-(d+t.width)),i.x+this.arrowPadding/2>n-this.rx&&(i.x=n-this.rx-this.arrowPadding/2,r.x=n,this.tipRadius=0),i.x-this.arrowPadding/2<this.rx&&(i.x=this.rx+this.arrowPadding/2,r.x=0,this.tipRadius=0)),new y(o.x,o.y,n,s)},h.prototype.animateTooltipDiv=function(t,i){var r,o=this,n=parseFloat(t.style.left),s=parseFloat(t.style.top);new e.Animation({}).animate(t,{duration:300,progress:function(e){r=e.timeStamp/e.duration,t.style.animation=null,t.style.left=n+r*(i.x-n)+"px",t.style.top=s+r*(i.y-s)+"px"},end:function(e){o.updateDiv(t,i.x,i.y),o.trigger("animationComplete",{tooltip:o})}})},h.prototype.updateDiv=function(t,e,i){t.style.left=e+"px",t.style.top=i+"px"},h.prototype.updateTemplateFn=function(){if(this.template)try{document.querySelectorAll(this.template).length&&(this.templateFn=e.compile(document.querySelector(this.template).innerHTML.trim()))}catch(t){this.templateFn=e.compile(this.template)}},h.prototype.fadeOut=function(){var t=this,i=n(this.element.id);if(i){var r=i.firstChild,o=parseFloat(r.getAttribute("opacity"))||1;new e.Animation({}).animate(r,{duration:200,progress:function(e){t.progressAnimation(r,o,e.timeStamp/e.duration)},end:function(e){t.fadeOuted=!0,t.endAnimation(r)}})}},h.prototype.progressAnimation=function(t,e,i){t.style.animation="",t.setAttribute("opacity",(e-i).toString())},h.prototype.endAnimation=function(t){t.setAttribute("opacity","0"),this.template&&!this.shared&&(t.style.display="none"),this.trigger("animationComplete",{tooltip:this})},h.prototype.getPersistData=function(){var t=[];return this.addOnPersist(t)},h.prototype.getModuleName=function(){return"tooltip"},h.prototype.destroy=function(){t.prototype.destroy.call(this),this.element.classList.remove("e-tooltip")},h.prototype.onPropertyChanged=function(t,e){this.isFirst=!1,this.render()},w([e.Property(!1)],h.prototype,"enable",void 0),w([e.Property(!1)],h.prototype,"shared",void 0),w([e.Property(!0)],h.prototype,"enableShadow",void 0),w([e.Property(null)],h.prototype,"fill",void 0),w([e.Property("")],h.prototype,"header",void 0),w([e.Property(.75)],h.prototype,"opacity",void 0),w([e.Complex({size:"13px",fontWeight:"Normal",color:null,fontStyle:"Normal",fontFamily:"Segoe UI"},S)],h.prototype,"textStyle",void 0),w([e.Property(null)],h.prototype,"template",void 0),w([e.Property(!0)],h.prototype,"enableAnimation",void 0),w([e.Property(!1)],h.prototype,"inverted",void 0),w([e.Property(!1)],h.prototype,"isNegative",void 0),w([e.Complex({color:"#cccccc",width:.5},L)],h.prototype,"border",void 0),w([e.Property([])],h.prototype,"content",void 0),w([e.Property(10)],h.prototype,"markerSize",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"clipBounds",void 0),w([e.Property([])],h.prototype,"palette",void 0),w([e.Property([])],h.prototype,"shapes",void 0),w([e.Complex({x:0,y:0},O)],h.prototype,"location",void 0),w([e.Property(0)],h.prototype,"offset",void 0),w([e.Property(2)],h.prototype,"rx",void 0),w([e.Property(2)],h.prototype,"ry",void 0),w([e.Property(5)],h.prototype,"marginX",void 0),w([e.Property(5)],h.prototype,"marginY",void 0),w([e.Property(12)],h.prototype,"arrowPadding",void 0),w([e.Property(null)],h.prototype,"data",void 0),w([e.Property("Material")],h.prototype,"theme",void 0),w([e.Complex({x:0,y:0,width:0,height:0},P)],h.prototype,"areaBounds",void 0),w([e.Event()],h.prototype,"tooltipRender",void 0),w([e.Event()],h.prototype,"loaded",void 0),w([e.Event()],h.prototype,"animationComplete",void 0),h=w([e.NotifyPropertyChanges],h)}(e.Component);return t.TextStyle=S,t.TooltipBorder=L,t.AreaBounds=P,t.ToolLocation=O,t.Tooltip=A,t.getTooltipThemeColor=i,t.measureText=r,t.findDirection=o,t.Size=u,t.Rect=y,t.Side=g,t.CustomizeOption=f,t.TextOption=m,t.getElement=n,t.removeElement=s,t.drawSymbol=a,t.calculateShapes=h,t.PathOption=x,t.textElement=l,t.TooltipLocation=v,t.SvgRenderer=d,t.CanvasRenderer=c,t}({},ej.base),this.ejs=ej;
//# sourceMappingURL=ej2-svg-base.min.js.map
/*!
* filename: index.d.ts
* version : 17.1.1-beta
* version : 17.1.32-beta
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"name": "@syncfusion/ej2-svg-base",
"version": "17.1.1-beta",
"description": "Essential JS 2 SVG Base Components",
"author": "Syncfusion Inc.",
"license": "SEE LICENSE IN license",
"_from": "@syncfusion/ej2-svg-base@*",
"_id": "@syncfusion/ej2-svg-base@17.1.1",
"_inBundle": false,
"_integrity": "sha512-KDagupfZIQvHyowNbuFtxvBAquv5L9UmZPySOhL2a2vIKLrz/IjK0oWwEeVLOK3VNl7I2WJ0bapEqEqCIyCBaA==",
"_location": "/@syncfusion/ej2-svg-base",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@syncfusion/ej2-svg-base@*",
"name": "@syncfusion/ej2-svg-base",
"escapedName": "@syncfusion%2fej2-svg-base",
"scope": "@syncfusion",
"rawSpec": "*",
"saveSpec": null,
"fetchSpec": "*"
},
"_requiredBy": [
"/",
"/@syncfusion/ej2",
"/@syncfusion/ej2-charts",
"/@syncfusion/ej2-circulargauge",
"/@syncfusion/ej2-heatmap",
"/@syncfusion/ej2-lineargauge",
"/@syncfusion/ej2-maps",
"/@syncfusion/ej2-pivotview",
"/@syncfusion/ej2-treemap"
],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-production/@syncfusion/ej2-svg-base/-/ej2-svg-base-17.1.1.tgz",
"_shasum": "f12f7eebf081a38270ecc7ca659e6660f3d57c36",
"_spec": "@syncfusion/ej2-svg-base@*",
"_where": "D:\\important\\apps\\nexus-rp\\release",
"author": {
"name": "Syncfusion Inc."
},
"bugs": {
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
},
"bundleDependencies": false,
"dependencies": {
"@syncfusion/ej2-base": "~17.1.1-beta"
"@syncfusion/ej2-base": "~17.1.32-beta"
},
"devDependencies": {
"@types/chai": "^3.4.28",
"@types/es6-promise": "0.0.28",
"@types/jasmine": "2.8.9",
"@types/jasmine-ajax": "^3.1.27",
"@types/requirejs": "^2.1.26"
},
"deprecated": false,
"description": "Essential JS 2 SVG Base Components",
"devDependencies": {},
"es2015": "./dist/es6/ej2-svg-base.es2015.js",
"homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme",
"keywords": [

@@ -22,10 +54,12 @@ "ej2",

],
"license": "SEE LICENSE IN license",
"main": "./dist/ej2-svg-base.umd.min.js",
"module": "./index.js",
"name": "@syncfusion/ej2-svg-base",
"repository": {
"type": "git",
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
},
"main": "./dist/ej2-svg-base.umd.min.js",
"module": "./index.js",
"es2015": "./dist/es6/ej2-svg-base.es2015.js",
"version": "17.1.32-beta",
"sideEffects": true
}

@@ -5,1 +5,2 @@ /**

export * from './tooltip/index';
export * from './svg-render/index';

@@ -5,1 +5,2 @@ /**

export * from './tooltip/index';
export * from './svg-render/index';

@@ -58,2 +58,4 @@ /**

/** Render a chart with Bootstrap Dark theme. */
'BootstrapDark';
'BootstrapDark' |
/** Render a chart with Bootstrap4 theme. */
'Bootstrap4';

@@ -14,3 +14,4 @@ var __extends = (this && this.__extends) || (function () {

})();
import { createElement, remove, SvgRenderer, merge } from '@syncfusion/ej2-base';
import { SvgRenderer } from '../svg-render/index';
import { createElement, remove, merge } from '@syncfusion/ej2-base';
/**

@@ -17,0 +18,0 @@ * Function to measure the height and width of the text.

@@ -6,2 +6,3 @@ /**

export * from './interface';
export * from './helper';
export * from './tooltip-model';

@@ -6,1 +6,2 @@ /**

export * from './interface';
export * from './helper';

@@ -23,2 +23,10 @@ /** @private */

break;
case 'Bootstrap4':
style = {
tooltipFill: 'rgba(0, 0, 0, 0.9)',
tooltipBoldLabel: 'rgba(255, 255, 255)',
tooltipLightLabel: 'rgba(255, 255, 255, 0.9)',
tooltipHeaderLine: 'rgba(255, 255, 255, 0.2)'
};
break;
default:

@@ -25,0 +33,0 @@ style = {

@@ -1,2 +0,2 @@

import { NotifyPropertyChanges, Property, Event, Complex, INotifyPropertyChanged} from '@syncfusion/ej2-base';import { SvgRenderer, extend, compile as templateComplier, Component} from '@syncfusion/ej2-base';import { ChildProperty, createElement, EmitType, remove, Browser, AnimationOptions, Animation} from '@syncfusion/ej2-base';import { ITooltipThemeStyle, ITooltipRenderingEventArgs, ITooltipAnimationCompleteArgs} from './interface';import { ITooltipLoadedEventArgs, getTooltipThemeColor } from './interface';import { Size, Rect, Side, measureText, getElement, findDirection, drawSymbol, textElement } from './helper';import { removeElement, TextOption, TooltipLocation, PathOption } from './helper';import { TooltipShape, TooltipTheme } from './enum';
import { NotifyPropertyChanges, Property, Event, Complex, INotifyPropertyChanged} from '@syncfusion/ej2-base';import { extend, compile as templateComplier, Component} from '@syncfusion/ej2-base';import { SvgRenderer } from '../svg-render/index';import { ChildProperty, createElement, EmitType, remove, Browser, AnimationOptions, Animation} from '@syncfusion/ej2-base';import { ITooltipThemeStyle, ITooltipRenderingEventArgs, ITooltipAnimationCompleteArgs} from './interface';import { ITooltipLoadedEventArgs, getTooltipThemeColor } from './interface';import { Size, Rect, Side, measureText, getElement, findDirection, drawSymbol, textElement } from './helper';import { removeElement, TextOption, TooltipLocation, PathOption } from './helper';import { TooltipShape, TooltipTheme } from './enum';
import {ComponentModel} from '@syncfusion/ej2-base';

@@ -3,0 +3,0 @@

@@ -21,3 +21,4 @@ var __extends = (this && this.__extends) || (function () {

import { NotifyPropertyChanges, Property, Event, Complex } from '@syncfusion/ej2-base';
import { SvgRenderer, extend, compile as templateComplier, Component } from '@syncfusion/ej2-base';
import { extend, compile as templateComplier, Component } from '@syncfusion/ej2-base';
import { SvgRenderer } from '../svg-render/index';
import { ChildProperty, createElement, remove, Browser, Animation } from '@syncfusion/ej2-base';

@@ -285,4 +286,6 @@ import { getTooltipThemeColor } from './interface';

if (this.enableShadow) {
pathElement.setAttribute('filter', Browser.isIE ? '' : 'url(#chart_shadow_tooltip)');
var shadow = '<filter id="chart_shadow_tooltip" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';
// To fix next chart initial tooltip opacity issue in tab control
var shadowId = this.element.id + '_shadow';
pathElement.setAttribute('filter', Browser.isIE ? '' : 'url(#' + shadowId + ')');
var shadow = '<filter id="' + shadowId + '" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="3"/>';
shadow += '<feOffset dx="3" dy="3" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="0.5"/>';

@@ -289,0 +292,0 @@ shadow += '</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc