diff --git a/CHANGELOG.md b/CHANGELOG.md index b813031..48bcce9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [v1.5.1](https://github.com/toorshia/justgage/compare/v1.5.0...v1.5.1) + +- fix: dtyle conflict with multiple gauges created using the "parentNode" method [`#367`](https://github.com/toorshia/justgage/pull/367) +- chore: bump path-parse from 1.0.6 to 1.0.7 [`#366`](https://github.com/toorshia/justgage/pull/366) +- chore: add release-it [`a7f66e6`](https://github.com/toorshia/justgage/commit/a7f66e671597fd18e9b6aa1815da027555cdf004) +- chore: add auto-changelog and fix audit [`ec9b25b`](https://github.com/toorshia/justgage/commit/ec9b25b798e91222374968145b161185252880af) + #### [v1.5.0](https://github.com/toorshia/justgage/compare/v1.4.3...v1.5.0) > 11 June 2021 - chore: setup eslint with workflow [`#364`](https://github.com/toorshia/justgage/pull/364) +- Release 1.5.0 [`f55d4b7`](https://github.com/toorshia/justgage/commit/f55d4b710f101ad272fea7c2485e62449bdc7948) #### [v1.4.3](https://github.com/toorshia/justgage/compare/v1.4.2...v1.4.3) @@ -124,6 +132,8 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - [feat] Support for label in refresh method [`3eea1ac`](https://github.com/toorshia/justgage/commit/3eea1acfa767ab27441e94553579a7efa457a7eb) - [fix] Memory leak: Unbind events on destroy #296 [`e4993c0`](https://github.com/toorshia/justgage/commit/e4993c0f1b9182cb9f3b994db7df95df6947b9a7) - [feat] Refresh with min value support (back compatible fix) [`b51840c`](https://github.com/toorshia/justgage/commit/b51840c507e155d3982aa0a17b5b8e02b5687145) +- Fixed refresh and other locations for displayRemaining [`e78d035`](https://github.com/toorshia/justgage/commit/e78d035ee46f5a7077cb240666b23437ce577569) +- Added a displayRemaining property which will show the difference between value and max (useful if you're more interested in how much is left, rather than how much has been used. [`904654b`](https://github.com/toorshia/justgage/commit/904654bb1635a434e37da423885e9258d69d24be) - [refactor] Comments [`ca519ed`](https://github.com/toorshia/justgage/commit/ca519ed2461c9cce95b44b5917921dcb5e8f327d) - [fix] Eve not defined [`81cff4c`](https://github.com/toorshia/justgage/commit/81cff4cd1ef3a57df5575421730b67a2aa3207de) - [fix] Removed const [`2d1773a`](https://github.com/toorshia/justgage/commit/2d1773a92b508773bc5557fff78350a3fea9c3fe) @@ -140,7 +150,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - [docs] Options [`c514faf`](https://github.com/toorshia/justgage/commit/c514faf80b2928654b65cfb37f82e018b446e716) - [build] Added gitignore and npmignore files [`c770b15`](https://github.com/toorshia/justgage/commit/c770b15af3305974661ea509eda6b8638eb6645a) - [docs] Updated readme [`b17651d`](https://github.com/toorshia/justgage/commit/b17651d8bb3670fe5c3c2362ba6372b3795cc4d4) -- Update .refresh() to support min value [`29ab14f`](https://github.com/toorshia/justgage/commit/29ab14f0eb57037ce38ea9a160c49ebd44babbc0) - [docs] Fixed readme [`8c29fe9`](https://github.com/toorshia/justgage/commit/8c29fe9e3ac6e4e39d73693de42b1b70d8a99364) - Release 1.3.0 [`0b920d4`](https://github.com/toorshia/justgage/commit/0b920d40a1b15a34a9700ac83eafc7a86b101a08) - Round Human friendly numbers less than 1000 [`83c8a93`](https://github.com/toorshia/justgage/commit/83c8a93dc080bc82fc25a664374ba457ff1dcf45) @@ -151,8 +160,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - justgauge.js now imports raphael and exports itself as a module [`9455c88`](https://github.com/toorshia/justgage/commit/9455c88b5d103609b035c0035fee2b6452adb21b) - [docs] Added GIF screenshot [`35b69ad`](https://github.com/toorshia/justgage/commit/35b69ad50a89d3c47ec1a0bb98cb95e977a18eb4) - Refactor and fix displayed value [`e236faa`](https://github.com/toorshia/justgage/commit/e236faaeba4d218c7d35254e4a82ad021d352759) -- Fixed refresh and other locations for displayRemaining [`e78d035`](https://github.com/toorshia/justgage/commit/e78d035ee46f5a7077cb240666b23437ce577569) -- Added a displayRemaining property which will show the difference between value and max (useful if you're more interested in how much is left, rather than how much has been used. [`904654b`](https://github.com/toorshia/justgage/commit/904654bb1635a434e37da423885e9258d69d24be) - export removed because it's now in index.js [`cb63f3f`](https://github.com/toorshia/justgage/commit/cb63f3f797ad243567e26d8562ec48b27ef7df7b) - Fix make function work with negative numbers too [`66c48c5`](https://github.com/toorshia/justgage/commit/66c48c5b1e058bee73dd82095a9caa8b41935e9b) - Fix issue with negative bounds [`f7f1071`](https://github.com/toorshia/justgage/commit/f7f10719c36393937be1cc650d3b94d8fa82af4c) @@ -175,7 +182,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [1.2.8](https://github.com/toorshia/justgage/compare/1.2.7...1.2.8) -> 25 September 2016 +> 26 September 2016 - Update README.md [`88325ab`](https://github.com/toorshia/justgage/commit/88325ab1755305d07d55677e65b469a854387c65) @@ -197,17 +204,19 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). #### [1.2.5](https://github.com/toorshia/justgage/compare/1.2.4...1.2.5) -> 22 September 2016 +> 23 September 2016 - https://github.com/toorshia/justgage/issues/245 [`87faeab`](https://github.com/toorshia/justgage/commit/87faeabae66aaa631de429b9a8db594e38deccb6) #### [1.2.4](https://github.com/toorshia/justgage/compare/1.2.3...1.2.4) -> 22 September 2016 +> 23 September 2016 - Added prototype.destroy() [`b1b6f47`](https://github.com/toorshia/justgage/commit/b1b6f4700731c7cecef0a22ba7aec4e5bb287887) +- filename change [`af9cc99`](https://github.com/toorshia/justgage/commit/af9cc990a7ba07940f3f94021b66c87959fc7da2) - Update README.md [`acb345a`](https://github.com/toorshia/justgage/commit/acb345a2eff7be5eb16d06294b1b425ff5958314) - Update README.md [`94ffb99`](https://github.com/toorshia/justgage/commit/94ffb992ab409b9f08a7bbdcb587b0e0b05fd8a1) +- adding sample for object refresh [`7f6b250`](https://github.com/toorshia/justgage/commit/7f6b250481da4e5b18f0a02d797ac5bd82114f22) #### [1.2.3](https://github.com/toorshia/justgage/compare/1.2.2...1.2.3) @@ -218,7 +227,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - #206 - maxTxt is used for both min and max when reverse is true [`#208`](https://github.com/toorshia/justgage/pull/208) - fix #194 [`#194`](https://github.com/toorshia/justgage/issues/194) - added onAnimationEnd event hook [`0bca41e`](https://github.com/toorshia/justgage/commit/0bca41e40931b979e3a80cbe4da80ac2b2c8d428) -- filename change [`af9cc99`](https://github.com/toorshia/justgage/commit/af9cc990a7ba07940f3f94021b66c87959fc7da2) - Set min and max text [`73cbf1e`](https://github.com/toorshia/justgage/commit/73cbf1ec663a8e01cc2e04e6c10328ddb97f57e6) - minTxt & maxTxt params [`c0a34ec`](https://github.com/toorshia/justgage/commit/c0a34ec105dc1a092af30a5c599e8978a2c15233) - Fix param name [`d1bc47d`](https://github.com/toorshia/justgage/commit/d1bc47d6d3deef4dda8217c853473496e06897e4) @@ -228,7 +236,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - Update README.md [`8bf0c21`](https://github.com/toorshia/justgage/commit/8bf0c216f614c705de72045cb69fb4e8b3633bf4) - Update README.md [`b0fc8e4`](https://github.com/toorshia/justgage/commit/b0fc8e427c95b3416e793dadb64723d9f3bbcbc2) - #193 [`5bffb51`](https://github.com/toorshia/justgage/commit/5bffb517255c12149e16b4a93cce0a47b106bfbb) -- adding sample for object refresh [`7f6b250`](https://github.com/toorshia/justgage/commit/7f6b250481da4e5b18f0a02d797ac5bd82114f22) #### [1.2.2](https://github.com/toorshia/justgage/compare/v1.2.1...1.2.2) @@ -245,6 +252,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). > 5 January 2016 - added donut pointer feature [`30b92b8`](https://github.com/toorshia/justgage/commit/30b92b8cb68c24360774f0cad1ceaa6b7a9f81f0) +- ... [`d859734`](https://github.com/toorshia/justgage/commit/d859734e5e3f7237d99d4e2009cb8e4727ad43ae) #### [v1.2.0](https://github.com/toorshia/justgage/compare/v1.1.0...v1.2.0) @@ -263,7 +271,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). - added license file [`c27622c`](https://github.com/toorshia/justgage/commit/c27622c9cbb22c12f92cd2e2439329a274ef7239) - minor examples fixes [`6c4c267`](https://github.com/toorshia/justgage/commit/6c4c2673629cfb3a33aeb6e6d9dda71974dc946c) - Update README.md [`ea6f003`](https://github.com/toorshia/justgage/commit/ea6f003767d3f5e158f4fdb7dd53e7be76dffe41) -- ... [`d859734`](https://github.com/toorshia/justgage/commit/d859734e5e3f7237d99d4e2009cb8e4727ad43ae) - nothing important :) [`bebb787`](https://github.com/toorshia/justgage/commit/bebb787c9fb1bfa7aefb5b85936c569d8c89204b) - defaults feature [`d0e055e`](https://github.com/toorshia/justgage/commit/d0e055e9511ec5d9933ecc492ef506459518c347) - testing decimals [`b6b3554`](https://github.com/toorshia/justgage/commit/b6b355450876c25b040aa357c4c9b7ef437e538e) diff --git a/dist/justgage.js b/dist/justgage.js index f99e3d9..923a069 100644 --- a/dist/justgage.js +++ b/dist/justgage.js @@ -61,6 +61,10 @@ // this is container element id id: config.id, + // classId : string + // this is the class id utilize when generating styles + classId: uuid(), + // value : float // value gauge is showing value: kvLookup("value", config, dataset, 0, "float"), @@ -1259,7 +1263,7 @@ */ JustGage.prototype.generateShadow = function (svg, defs) { const obj = this; - const sid = "inner-shadow-" + obj.config.id; + const sid = "inner-shadow-" + (obj.config.id || obj.config.classId); // FILTER const gaussFilter = document.createElementNS(svg, "filter"); @@ -1312,11 +1316,11 @@ if (obj.config.showInnerShadow) { obj.canvas.canvas.childNodes[2].setAttribute( "filter", - "url(" + window.location.pathname + "#" + sid + ")" + "url(#" + sid + ")" ); obj.canvas.canvas.childNodes[3].setAttribute( "filter", - "url(" + window.location.pathname + "#" + sid + ")" + "url(#" + sid + ")" ); } }; @@ -1573,5 +1577,20 @@ return n !== null && n !== undefined && !isNaN(n); } + /** + * Generate UUID + * @returns UUID + */ + function uuid() { + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace( + /[xy]/g, + function (c) { + const r = (Math.random() * 16) | 0; + const v = c === "x" ? r : (r & 0x3) | 0x8; + return v.toString(16); + } + ); + } + return JustGage; }); diff --git a/dist/justgage.min.js b/dist/justgage.min.js index 4f64896..2648f6b 100644 --- a/dist/justgage.min.js +++ b/dist/justgage.min.js @@ -1,2 +1,2 @@ -!function(t,n){"function"==typeof define&&define.amd?define(["raphael"],function(e){return t.JustGage=n(e)}):"object"==typeof module&&module.exports?module.exports=t.JustGage=n(require("raphael")):t.JustGage=n(Raphael)}("undefined"!=typeof window?window:this,function(t){const n=function(n){const e=this;if(e.events={},o(n))return!1;if(o(n.id)){if(o(n.parentNode))return!1;e.node=n.parentNode}else if(e.node=document.getElementById(n.id),!e.node)return!1;const r=e.node.dataset?e.node.dataset:{},c=!o(n.defaults)&&n.defaults;let u,d,p,h,x,b,v,M,y,F,S,w,A,z,V,T,C,N,O;!1!==c&&delete(n=function(t){t=t||{};for(let n=1;n"),refreshAnimationTime:i("refreshAnimationTime",n,r,700),refreshAnimationType:i("refreshAnimationType",n,r,">"),donutStartAngle:i("donutStartAngle",n,r,90),valueMinFontSize:i("valueMinFontSize",n,r,16),labelMinFontSize:i("labelMinFontSize",n,r,10),minLabelMinFontSize:i("minLabelMinFontSize",n,r,10),maxLabelMinFontSize:i("maxLabelMinFontSize",n,r,10),hideValue:i("hideValue",n,r,!1),hideMinMax:i("hideMinMax",n,r,!1),showInnerShadow:i("showInnerShadow",n,r,!1),humanFriendly:i("humanFriendly",n,r,!1),noGradient:i("noGradient",n,r,!1),donut:i("donut",n,r,!1),relativeGaugeSize:i("relativeGaugeSize",n,r,!1),counter:i("counter",n,r,!1),decimals:i("decimals",n,r,0),customSectors:i("customSectors",n,r,{}),formatNumber:i("formatNumber",n,r,!1),pointer:i("pointer",n,r,!1),pointerOptions:i("pointerOptions",n,r,{}),displayRemaining:i("displayRemaining",n,r,!1)},e.config.value>e.config.max&&(e.config.value=e.config.max),e.config.valued?p=h=d:h=p=u,b=(u-p)/2,v=(d-h)/2,M=h/6.4>16?h/5.4:18,y=b+p/2,w=b+p/2,A=(F=""!==e.config.label?v+h/1.85:v+h/1.7)+(S=h/16>10?h/16:10),z=h/16>10?h/16:10,V=b+p/10+p/6.666666666666667*e.config.gaugeWidthScale/2,T=A,C=h/16>10?h/16:10,N=b+p-p/10-p/6.666666666666667*e.config.gaugeWidthScale/2,O=A):(u>d?(p=2*(h=d))>u&&(p/=x=p/u,h/=x):h=ue.config.valueMinFontSize?h/6.5:e.config.valueMinFontSize,y=b+p/2,F=v+h/1.275,S=h/16>e.config.labelMinFontSize?h/16:e.config.labelMinFontSize,w=b+p/2,A=F+M/2+5,z=h/16>e.config.minLabelMinFontSize?h/16:e.config.minLabelMinFontSize,V=b+p/10+p/6.666666666666667*e.config.gaugeWidthScale/2,T=A,C=h/16>e.config.maxLabelMinFontSize?h/16:e.config.maxLabelMinFontSize,N=b+p-p/10-p/6.666666666666667*e.config.gaugeWidthScale/2,O=A),e.params={canvasW:u,canvasH:d,widgetW:p,widgetH:h,dx:b,dy:v,valueFontSize:M,valueX:y,valueY:F,labelFontSize:S,labelX:w,labelY:A,minFontSize:z,minX:V,minY:T,maxFontSize:C,maxX:N,maxY:O},e.canvas.customAttributes.pki=function(t){let n=e.config.min,i=e.config.max;const o=e.params.widgetW,a=e.params.widgetH,l=e.params.dx,r=e.params.dy,c=e.config.gaugeWidthScale,f=e.config.donut;let s,m,g,u,d,p,h,x,b,v;return n<0&&(i-=n,t-=n,n=0),f?(s=(1-2*(t-n)/(i-n))*Math.PI,g=(m=o/2-o/30)-o/6.666666666666667*c,d=a/2+r,p=(u=o/2+l)+m*Math.cos(s),h=d-m*Math.sin(s),x=u+g*Math.cos(s),b=d-g*Math.sin(s),v="M"+(u-g)+","+d+" ",v+="L"+(u-m)+","+d+" ",t-n>(i-n)/2&&(v+="A"+m+","+m+" 0 0 1 "+(u+m)+","+d+" "),v+="A"+m+","+m+" 0 0 1 "+p+","+h+" ",v+="L"+x+","+b+" ",t-n>(i-n)/2&&(v+="A"+g+","+g+" 0 0 0 "+(u+g)+","+d+" "),v+="A"+g+","+g+" 0 0 0 "+(u-g)+","+d+" ",{path:v+="Z "}):(s=(1-(t-n)/(i-n))*Math.PI,v="M"+((u=o/2+l)-(g=(m=o/2-o/10)-o/6.666666666666667*c))+","+(d=a/1.25+r)+" ",v+="L"+(u-m)+","+d+" ",v+="A"+m+","+m+" 0 0 1 "+(p=u+m*Math.cos(s))+","+(h=d-m*Math.sin(s))+" ",v+="L"+(x=u+g*Math.cos(s))+","+(b=d-g*Math.sin(s))+" ",v+="A"+g+","+g+" 0 0 0 "+(u-g)+","+d+" ",{path:v+="Z "})},e.canvas.customAttributes.ndl=function(t){const n=e.config.min,i=e.config.max,o=e.params.widgetW,a=e.params.widgetH,l=e.params.dx,r=e.params.dy,c=e.config.gaugeWidthScale,f=e.config.donut;let s,m,g,u,d,p,h,x,b,v,M,y,F,S,w,A,z,V=3.5*o/100,T=o/15,C=o/100;return null!=e.config.pointerOptions.toplength&&void 0!==e.config.pointerOptions.toplength&&(V=e.config.pointerOptions.toplength),null!=e.config.pointerOptions.bottomlength&&void 0!==e.config.pointerOptions.bottomlength&&(T=e.config.pointerOptions.bottomlength),null!=e.config.pointerOptions.bottomwidth&&void 0!==e.config.pointerOptions.bottomwidth&&(C=e.config.pointerOptions.bottomwidth),f?(s=(1-2*(t-n)/(i-n))*Math.PI,g=(m=o/2-o/30)-o/6.666666666666667*c,u=a/2+r,d=o/2+l+m*Math.cos(s),p=a-(a-u)-m*Math.sin(s),h=o/2+l+g*Math.cos(s),x=a-(a-u)-g*Math.sin(s),b=d+V*Math.cos(s),v=p-V*Math.sin(s),M=h-T*Math.cos(s),y=x+T*Math.sin(s),z="M"+(F=M+C*Math.sin(s))+","+(S=y+C*Math.cos(s))+" ",z+="L"+(w=M-C*Math.sin(s))+","+(A=y-C*Math.cos(s))+" ",z+="L"+b+","+v+" ",{path:z+="Z "}):(s=(1-(t-n)/(i-n))*Math.PI,g=(m=o/2-o/10)-o/6.666666666666667*c,u=a/1.25+r,d=o/2+l+m*Math.cos(s),p=a-(a-u)-m*Math.sin(s),h=o/2+l+g*Math.cos(s),x=a-(a-u)-g*Math.sin(s),b=d+V*Math.cos(s),v=p-V*Math.sin(s),M=h-T*Math.cos(s),y=x+T*Math.sin(s),z="M"+(F=M+C*Math.sin(s))+","+(S=y+C*Math.cos(s))+" ",z+="L"+(w=M-C*Math.sin(s))+","+(A=y-C*Math.cos(s))+" ",z+="L"+b+","+v+" ",{path:z+="Z "})},e.gauge=e.canvas.path().attr({stroke:"none",fill:e.config.gaugeColor,pki:[e.config.max]}),e.level=e.canvas.path().attr({stroke:"none",fill:a(e.config.value,(e.config.value-e.config.min)/(e.config.max-e.config.min),e.config.levelColors,e.config.noGradient,e.config.customSectors),pki:[e.config.min]}),e.config.donut&&e.level.transform("r"+e.config.donutStartAngle+", "+(e.params.widgetW/2+e.params.dx)+", "+(e.params.widgetH/2+e.params.dy)),e.config.pointer&&(e.needle=e.canvas.path().attr({stroke:o(e.config.pointerOptions.stroke)?"none":e.config.pointerOptions.stroke,"stroke-width":o(e.config.pointerOptions.stroke_width)?0:e.config.pointerOptions.stroke_width,"stroke-linecap":o(e.config.pointerOptions.stroke_linecap)?"square":e.config.pointerOptions.stroke_linecap,fill:o(e.config.pointerOptions.color)?"#000000":e.config.pointerOptions.color,ndl:[e.config.min]}),e.config.donut&&e.needle.transform("r"+e.config.donutStartAngle+", "+(e.params.widgetW/2+e.params.dx)+", "+(e.params.widgetH/2+e.params.dy))),e.txtValue=e.canvas.text(e.params.valueX,e.params.valueY,0),e.txtValue.attr({"font-size":e.params.valueFontSize,"font-weight":"bold","font-family":e.config.valueFontFamily,fill:e.config.valueFontColor,"fill-opacity":"0"}),l(e.txtValue,e.params.valueFontSize,e.params.valueY),e.txtLabel=e.canvas.text(e.params.labelX,e.params.labelY,e.config.label),e.txtLabel.attr({"font-size":e.params.labelFontSize,"font-weight":"normal","font-family":e.config.labelFontFamily,fill:e.config.labelFontColor,"fill-opacity":"0"}),l(e.txtLabel,e.params.labelFontSize,e.params.labelY);let L=e.config.min;e.config.reverse&&(L=e.config.max),e.txtMinimum=L,e.config.minTxt?e.txtMinimum=e.config.minTxt:e.config.humanFriendly?e.txtMinimum=f(L,e.config.humanFriendlyDecimal):e.config.formatNumber&&(e.txtMinimum=s(L)),e.txtMin=e.canvas.text(e.params.minX,e.params.minY,e.txtMinimum),e.txtMin.attr({"font-size":e.params.minFontSize,"font-weight":"normal","font-family":e.config.labelFontFamily,fill:e.config.labelFontColor,"fill-opacity":e.config.hideMinMax||e.config.donut?"0":"1"}),l(e.txtMin,e.params.minFontSize,e.params.minY);let E=e.config.max;e.config.reverse&&(E=e.config.min),e.txtMaximum=E,e.config.maxTxt?e.txtMaximum=e.config.maxTxt:e.config.humanFriendly?e.txtMaximum=f(E,e.config.humanFriendlyDecimal):e.config.formatNumber&&(e.txtMaximum=s(E)),e.txtMax=e.canvas.text(e.params.maxX,e.params.maxY,e.txtMaximum),e.txtMax.attr({"font-size":e.params.maxFontSize,"font-weight":"normal","font-family":e.config.labelFontFamily,fill:e.config.labelFontColor,"fill-opacity":e.config.hideMinMax||e.config.donut?"0":"1"}),l(e.txtMax,e.params.maxFontSize,e.params.maxY);const k=e.canvas.canvas.childNodes[1],Y="http://www.w3.org/2000/svg";if(void 0!==g&&g<9||(void 0!==g?function t(n){void 0!==document.createElementNS?n():setTimeout(function(){t(n)},100)}(function(){e.generateShadow(Y,k)}):e.generateShadow(Y,k)),e.config.textRenderer&&!1!==e.config.textRenderer(e.originalValue)?e.originalValue=e.config.textRenderer(e.originalValue):e.config.humanFriendly?e.originalValue=f(e.originalValue,e.config.humanFriendlyDecimal)+e.config.symbol:e.config.formatNumber?e.originalValue=s(e.originalValue)+e.config.symbol:e.config.displayRemaining?e.originalValue=(1*(e.config.max-e.originalValue)).toFixed(e.config.decimals)+e.config.symbol:e.originalValue=(1*e.originalValue).toFixed(e.config.decimals)+e.config.symbol,!0===e.config.counter){const t=function(){let t=e.level.attr("pki")[0];e.config.reverse&&(t=1*e.config.max+1*e.config.min-1*e.level.attr("pki")[0]),e.config.textRenderer&&!1!==e.config.textRenderer(Math.floor(t))?e.txtValue.attr("text",e.config.textRenderer(Math.floor(t))):e.config.humanFriendly?e.txtValue.attr("text",f(Math.floor(t),e.config.humanFriendlyDecimal)+e.config.symbol):e.config.formatNumber?e.txtValue.attr("text",s(Math.floor(t))+e.config.symbol):e.config.displayRemaining?e.txtValue.attr("text",(1*(e.config.max-t)).toFixed(e.config.decimals)+e.config.symbol):e.txtValue.attr("text",(1*t).toFixed(e.config.decimals)+e.config.symbol),l(e.txtValue,e.params.valueFontSize,e.params.valueY),t=null},n=function(){e.txtValue.attr({text:e.originalValue}),l(e.txtValue,e.params.valueFontSize,e.params.valueY)};this.bindEvent("raphael.anim.finish",n),this.bindEvent("raphael.anim.frame",t)}else{const t=function(){e.txtValue.attr({text:e.originalValue}),l(e.txtValue,e.params.valueFontSize,e.params.valueY)};this.bindEvent("raphael.anim.start",t)}let R=e.config.value;e.config.reverse&&(R=1*e.config.max+1*e.config.min-1*e.config.value),e.level.animate({pki:[R]},e.config.startAnimationTime,e.config.startAnimationType,e.config.onAnimationEnd),e.config.pointer&&e.needle.animate({ndl:[R]},e.config.startAnimationTime,e.config.startAnimationType),e.txtValue.animate({"fill-opacity":e.config.hideValue?"0":"1"},e.config.startAnimationTime,e.config.startAnimationType),e.txtLabel.animate({"fill-opacity":"1"},e.config.startAnimationTime,e.config.startAnimationType)};function e(t,n,e){switch(n){case"valueFontColor":if(!c(e))break;t.txtValue.attr({fill:e});break;case"labelFontColor":if(!c(e))break;t.txtMin.attr({fill:e}),t.txtMax.attr({fill:e}),t.txtLabel.attr({fill:e})}}function i(t,n,e,i,a,l){let r=i,c=!1;if(!o(t)&&(!o(e)&&"object"==typeof e&&t in e?(r=e[t],c=!0):!o(n)&&"object"==typeof n&&t in n?(r=n[t],c=!0):r=i,!0===c&&!o(a)))switch(a){case"int":r=parseInt(r,10);break;case"float":r=parseFloat(r)}return r}function o(t){return null===t||void 0===t}function a(t,n,e,i,o){let a,l,c,f,s,m,g,u,d,p,h;const x=o&&o.ranges&&o.ranges.length>0;if(i=i||x,x){!0===o.percents&&(t=100*n);for(let n=0;n=o.ranges[n].lo&&t<=o.ranges[n].hi)return o.ranges[n].color}const b=e.length;if(1===b)return e[0];const v=i?1/b:1/(b-1),M=[];for(let t=0;t9)&&t.node.firstChild.attributes.dy&&(t.node.firstChild.attributes.dy.value=0)}function r(t){return"#"===t.charAt(0)?t.substring(1,7):t}function c(t){return"string"==typeof t&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(t)}function f(t,n){const e=Math.pow(10,n),i=" KMGTPE";let o=0;for(;(t>=1e3||t<=-1e3)&&++o=i.length?i.length-1:o,Math.round(t*e)/e+i[o]}function s(t){const n=t.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")}function m(t,n){let e="";return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,"").getPropertyValue(n):t.currentStyle&&(n=n.replace(/-(\w)/g,function(t,n){return n.toUpperCase()}),e=t.currentStyle[n]),e}n.prototype.bindEvent=function(n,e){n+="."+this.level.id,this.events[n]&&t.eve.off(n,this.events[n]),t.eve.on(n,e),this.events[n]=e},n.prototype.refresh=function(t,n,e,i){const o=this;let r;n=u(n)?n:null,e=u(e)?e:null,null!==(i=i||null)&&(o.config.label=i,o.txtLabel.attr({text:o.config.label}),l(o.txtLabel,o.params.labelFontSize,o.params.labelY)),null!==e&&(o.config.min=e,o.txtMinimum=o.config.min,o.config.minTxt?o.txtMinimum=o.config.minTxt:o.config.humanFriendly?o.txtMinimum=f(o.config.min,o.config.humanFriendlyDecimal):o.config.formatNumber&&(o.txtMinimum=s(o.config.min)),o.config.reverse?(o.txtMax.attr({text:o.txtMinimum}),l(o.txtMax,o.params.minFontSize,o.params.minY)):(o.txtMin.attr({text:o.txtMinimum}),l(o.txtMin,o.params.minFontSize,o.params.minY))),null!==n&&(o.config.max=n,o.txtMaximum=o.config.max,o.config.maxTxt?o.txtMaximum=o.config.maxTxt:o.config.humanFriendly?o.txtMaximum=f(o.config.max,o.config.humanFriendlyDecimal):o.config.formatNumber&&(o.txtMaximum=s(o.config.max)),o.config.reverse?(o.txtMin.attr({text:o.txtMaximum}),l(o.txtMin,o.params.maxFontSize,o.params.maxY)):(o.txtMax.attr({text:o.txtMaximum}),l(o.txtMax,o.params.maxFontSize,o.params.maxY))),r=t,1*t>1*o.config.max&&(t=1*o.config.max),1*t<1*o.config.min&&(t=1*o.config.min);const c=a(t,(t-o.config.min)/(o.config.max-o.config.min),o.config.levelColors,o.config.noGradient,o.config.customSectors);r=o.config.textRenderer&&!1!==o.config.textRenderer(r)?o.config.textRenderer(r):o.config.humanFriendly?f(r,o.config.humanFriendlyDecimal)+o.config.symbol:o.config.formatNumber?s((1*r).toFixed(o.config.decimals))+o.config.symbol:o.config.displayRemaining?(1*(o.config.max-r)).toFixed(o.config.decimals)+o.config.symbol:(1*r).toFixed(o.config.decimals)+o.config.symbol,o.originalValue=r,o.config.value=1*t,o.config.counter||(o.txtValue.attr({text:r}),l(o.txtValue,o.params.valueFontSize,o.params.valueY));let m=o.config.value;o.config.reverse&&(m=1*o.config.max+1*o.config.min-1*o.config.value),o.level.animate({pki:[m],fill:c},o.config.refreshAnimationTime,o.config.refreshAnimationType,o.config.onAnimationEnd),o.config.pointer&&o.needle.animate({ndl:[m]},o.config.refreshAnimationTime,o.config.refreshAnimationType)},n.prototype.update=function(t,n){const i=this;if(t instanceof Object)for(const o in t)e(i,o,n=t[o]);else e(i,t,n)},n.prototype.destroy=function(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const n in this.events)t.eve.off(n,this.events[n]);this.events={}},n.prototype.generateShadow=function(t,n){const e=this,i="inner-shadow-"+e.config.id,o=document.createElementNS(t,"filter");o.setAttribute("id",i),n.appendChild(o);const a=document.createElementNS(t,"feOffset");a.setAttribute("dx",0),a.setAttribute("dy",e.config.shadowVerticalOffset),o.appendChild(a);const l=document.createElementNS(t,"feGaussianBlur");l.setAttribute("result","offset-blur"),l.setAttribute("stdDeviation",e.config.shadowSize),o.appendChild(l);const r=document.createElementNS(t,"feComposite");r.setAttribute("operator","out"),r.setAttribute("in","SourceGraphic"),r.setAttribute("in2","offset-blur"),r.setAttribute("result","inverse"),o.appendChild(r);const c=document.createElementNS(t,"feFlood");c.setAttribute("flood-color","black"),c.setAttribute("flood-opacity",e.config.shadowOpacity),c.setAttribute("result","color"),o.appendChild(c);const f=document.createElementNS(t,"feComposite");f.setAttribute("operator","in"),f.setAttribute("in","color"),f.setAttribute("in2","inverse"),f.setAttribute("result","shadow"),o.appendChild(f);const s=document.createElementNS(t,"feComposite");s.setAttribute("operator","over"),s.setAttribute("in","shadow"),s.setAttribute("in2","SourceGraphic"),o.appendChild(s),e.config.showInnerShadow&&(e.canvas.canvas.childNodes[2].setAttribute("filter","url("+window.location.pathname+"#"+i+")"),e.canvas.canvas.childNodes[3].setAttribute("filter","url("+window.location.pathname+"#"+i+")"))};const g=function(){let t=3;const n=document.createElement("div"),e=n.getElementsByTagName("i");for(;e[0];)n.innerHTML="\x3c!--[if gt IE "+ ++t+"]>4?t:void 0}();function u(t){return null!==t&&void 0!==t&&!isNaN(t)}return n}); +!function(t,n){"function"==typeof define&&define.amd?define(["raphael"],function(e){return t.JustGage=n(e)}):"object"==typeof module&&module.exports?module.exports=t.JustGage=n(require("raphael")):t.JustGage=n(Raphael)}("undefined"!=typeof window?window:this,function(t){const n=function(n){const e=this;if(e.events={},o(n))return!1;if(o(n.id)){if(o(n.parentNode))return!1;e.node=n.parentNode}else if(e.node=document.getElementById(n.id),!e.node)return!1;const r=e.node.dataset?e.node.dataset:{},c=!o(n.defaults)&&n.defaults;let u,d,p,x,h,b,v,M,y,F,S,w,A,z,V,T,C,N,O;!1!==c&&delete(n=function(t){t=t||{};for(let n=1;n"),refreshAnimationTime:i("refreshAnimationTime",n,r,700),refreshAnimationType:i("refreshAnimationType",n,r,">"),donutStartAngle:i("donutStartAngle",n,r,90),valueMinFontSize:i("valueMinFontSize",n,r,16),labelMinFontSize:i("labelMinFontSize",n,r,10),minLabelMinFontSize:i("minLabelMinFontSize",n,r,10),maxLabelMinFontSize:i("maxLabelMinFontSize",n,r,10),hideValue:i("hideValue",n,r,!1),hideMinMax:i("hideMinMax",n,r,!1),showInnerShadow:i("showInnerShadow",n,r,!1),humanFriendly:i("humanFriendly",n,r,!1),noGradient:i("noGradient",n,r,!1),donut:i("donut",n,r,!1),relativeGaugeSize:i("relativeGaugeSize",n,r,!1),counter:i("counter",n,r,!1),decimals:i("decimals",n,r,0),customSectors:i("customSectors",n,r,{}),formatNumber:i("formatNumber",n,r,!1),pointer:i("pointer",n,r,!1),pointerOptions:i("pointerOptions",n,r,{}),displayRemaining:i("displayRemaining",n,r,!1)},e.config.value>e.config.max&&(e.config.value=e.config.max),e.config.valued?p=x=d:x=p=u,b=(u-p)/2,v=(d-x)/2,M=x/6.4>16?x/5.4:18,y=b+p/2,w=b+p/2,A=(F=""!==e.config.label?v+x/1.85:v+x/1.7)+(S=x/16>10?x/16:10),z=x/16>10?x/16:10,V=b+p/10+p/6.666666666666667*e.config.gaugeWidthScale/2,T=A,C=x/16>10?x/16:10,N=b+p-p/10-p/6.666666666666667*e.config.gaugeWidthScale/2,O=A):(u>d?(p=2*(x=d))>u&&(p/=h=p/u,x/=h):x=ue.config.valueMinFontSize?x/6.5:e.config.valueMinFontSize,y=b+p/2,F=v+x/1.275,S=x/16>e.config.labelMinFontSize?x/16:e.config.labelMinFontSize,w=b+p/2,A=F+M/2+5,z=x/16>e.config.minLabelMinFontSize?x/16:e.config.minLabelMinFontSize,V=b+p/10+p/6.666666666666667*e.config.gaugeWidthScale/2,T=A,C=x/16>e.config.maxLabelMinFontSize?x/16:e.config.maxLabelMinFontSize,N=b+p-p/10-p/6.666666666666667*e.config.gaugeWidthScale/2,O=A),e.params={canvasW:u,canvasH:d,widgetW:p,widgetH:x,dx:b,dy:v,valueFontSize:M,valueX:y,valueY:F,labelFontSize:S,labelX:w,labelY:A,minFontSize:z,minX:V,minY:T,maxFontSize:C,maxX:N,maxY:O},e.canvas.customAttributes.pki=function(t){let n=e.config.min,i=e.config.max;const o=e.params.widgetW,a=e.params.widgetH,l=e.params.dx,r=e.params.dy,c=e.config.gaugeWidthScale,f=e.config.donut;let s,m,g,u,d,p,x,h,b,v;return n<0&&(i-=n,t-=n,n=0),f?(s=(1-2*(t-n)/(i-n))*Math.PI,g=(m=o/2-o/30)-o/6.666666666666667*c,d=a/2+r,p=(u=o/2+l)+m*Math.cos(s),x=d-m*Math.sin(s),h=u+g*Math.cos(s),b=d-g*Math.sin(s),v="M"+(u-g)+","+d+" ",v+="L"+(u-m)+","+d+" ",t-n>(i-n)/2&&(v+="A"+m+","+m+" 0 0 1 "+(u+m)+","+d+" "),v+="A"+m+","+m+" 0 0 1 "+p+","+x+" ",v+="L"+h+","+b+" ",t-n>(i-n)/2&&(v+="A"+g+","+g+" 0 0 0 "+(u+g)+","+d+" "),v+="A"+g+","+g+" 0 0 0 "+(u-g)+","+d+" ",{path:v+="Z "}):(s=(1-(t-n)/(i-n))*Math.PI,v="M"+((u=o/2+l)-(g=(m=o/2-o/10)-o/6.666666666666667*c))+","+(d=a/1.25+r)+" ",v+="L"+(u-m)+","+d+" ",v+="A"+m+","+m+" 0 0 1 "+(p=u+m*Math.cos(s))+","+(x=d-m*Math.sin(s))+" ",v+="L"+(h=u+g*Math.cos(s))+","+(b=d-g*Math.sin(s))+" ",v+="A"+g+","+g+" 0 0 0 "+(u-g)+","+d+" ",{path:v+="Z "})},e.canvas.customAttributes.ndl=function(t){const n=e.config.min,i=e.config.max,o=e.params.widgetW,a=e.params.widgetH,l=e.params.dx,r=e.params.dy,c=e.config.gaugeWidthScale,f=e.config.donut;let s,m,g,u,d,p,x,h,b,v,M,y,F,S,w,A,z,V=3.5*o/100,T=o/15,C=o/100;return null!=e.config.pointerOptions.toplength&&void 0!==e.config.pointerOptions.toplength&&(V=e.config.pointerOptions.toplength),null!=e.config.pointerOptions.bottomlength&&void 0!==e.config.pointerOptions.bottomlength&&(T=e.config.pointerOptions.bottomlength),null!=e.config.pointerOptions.bottomwidth&&void 0!==e.config.pointerOptions.bottomwidth&&(C=e.config.pointerOptions.bottomwidth),f?(s=(1-2*(t-n)/(i-n))*Math.PI,g=(m=o/2-o/30)-o/6.666666666666667*c,u=a/2+r,d=o/2+l+m*Math.cos(s),p=a-(a-u)-m*Math.sin(s),x=o/2+l+g*Math.cos(s),h=a-(a-u)-g*Math.sin(s),b=d+V*Math.cos(s),v=p-V*Math.sin(s),M=x-T*Math.cos(s),y=h+T*Math.sin(s),z="M"+(F=M+C*Math.sin(s))+","+(S=y+C*Math.cos(s))+" ",z+="L"+(w=M-C*Math.sin(s))+","+(A=y-C*Math.cos(s))+" ",z+="L"+b+","+v+" ",{path:z+="Z "}):(s=(1-(t-n)/(i-n))*Math.PI,g=(m=o/2-o/10)-o/6.666666666666667*c,u=a/1.25+r,d=o/2+l+m*Math.cos(s),p=a-(a-u)-m*Math.sin(s),x=o/2+l+g*Math.cos(s),h=a-(a-u)-g*Math.sin(s),b=d+V*Math.cos(s),v=p-V*Math.sin(s),M=x-T*Math.cos(s),y=h+T*Math.sin(s),z="M"+(F=M+C*Math.sin(s))+","+(S=y+C*Math.cos(s))+" ",z+="L"+(w=M-C*Math.sin(s))+","+(A=y-C*Math.cos(s))+" ",z+="L"+b+","+v+" ",{path:z+="Z "})},e.gauge=e.canvas.path().attr({stroke:"none",fill:e.config.gaugeColor,pki:[e.config.max]}),e.level=e.canvas.path().attr({stroke:"none",fill:a(e.config.value,(e.config.value-e.config.min)/(e.config.max-e.config.min),e.config.levelColors,e.config.noGradient,e.config.customSectors),pki:[e.config.min]}),e.config.donut&&e.level.transform("r"+e.config.donutStartAngle+", "+(e.params.widgetW/2+e.params.dx)+", "+(e.params.widgetH/2+e.params.dy)),e.config.pointer&&(e.needle=e.canvas.path().attr({stroke:o(e.config.pointerOptions.stroke)?"none":e.config.pointerOptions.stroke,"stroke-width":o(e.config.pointerOptions.stroke_width)?0:e.config.pointerOptions.stroke_width,"stroke-linecap":o(e.config.pointerOptions.stroke_linecap)?"square":e.config.pointerOptions.stroke_linecap,fill:o(e.config.pointerOptions.color)?"#000000":e.config.pointerOptions.color,ndl:[e.config.min]}),e.config.donut&&e.needle.transform("r"+e.config.donutStartAngle+", "+(e.params.widgetW/2+e.params.dx)+", "+(e.params.widgetH/2+e.params.dy))),e.txtValue=e.canvas.text(e.params.valueX,e.params.valueY,0),e.txtValue.attr({"font-size":e.params.valueFontSize,"font-weight":"bold","font-family":e.config.valueFontFamily,fill:e.config.valueFontColor,"fill-opacity":"0"}),l(e.txtValue,e.params.valueFontSize,e.params.valueY),e.txtLabel=e.canvas.text(e.params.labelX,e.params.labelY,e.config.label),e.txtLabel.attr({"font-size":e.params.labelFontSize,"font-weight":"normal","font-family":e.config.labelFontFamily,fill:e.config.labelFontColor,"fill-opacity":"0"}),l(e.txtLabel,e.params.labelFontSize,e.params.labelY);let L=e.config.min;e.config.reverse&&(L=e.config.max),e.txtMinimum=L,e.config.minTxt?e.txtMinimum=e.config.minTxt:e.config.humanFriendly?e.txtMinimum=f(L,e.config.humanFriendlyDecimal):e.config.formatNumber&&(e.txtMinimum=s(L)),e.txtMin=e.canvas.text(e.params.minX,e.params.minY,e.txtMinimum),e.txtMin.attr({"font-size":e.params.minFontSize,"font-weight":"normal","font-family":e.config.labelFontFamily,fill:e.config.labelFontColor,"fill-opacity":e.config.hideMinMax||e.config.donut?"0":"1"}),l(e.txtMin,e.params.minFontSize,e.params.minY);let E=e.config.max;e.config.reverse&&(E=e.config.min),e.txtMaximum=E,e.config.maxTxt?e.txtMaximum=e.config.maxTxt:e.config.humanFriendly?e.txtMaximum=f(E,e.config.humanFriendlyDecimal):e.config.formatNumber&&(e.txtMaximum=s(E)),e.txtMax=e.canvas.text(e.params.maxX,e.params.maxY,e.txtMaximum),e.txtMax.attr({"font-size":e.params.maxFontSize,"font-weight":"normal","font-family":e.config.labelFontFamily,fill:e.config.labelFontColor,"fill-opacity":e.config.hideMinMax||e.config.donut?"0":"1"}),l(e.txtMax,e.params.maxFontSize,e.params.maxY);const k=e.canvas.canvas.childNodes[1],Y="http://www.w3.org/2000/svg";if(void 0!==g&&g<9||(void 0!==g?function t(n){void 0!==document.createElementNS?n():setTimeout(function(){t(n)},100)}(function(){e.generateShadow(Y,k)}):e.generateShadow(Y,k)),e.config.textRenderer&&!1!==e.config.textRenderer(e.originalValue)?e.originalValue=e.config.textRenderer(e.originalValue):e.config.humanFriendly?e.originalValue=f(e.originalValue,e.config.humanFriendlyDecimal)+e.config.symbol:e.config.formatNumber?e.originalValue=s(e.originalValue)+e.config.symbol:e.config.displayRemaining?e.originalValue=(1*(e.config.max-e.originalValue)).toFixed(e.config.decimals)+e.config.symbol:e.originalValue=(1*e.originalValue).toFixed(e.config.decimals)+e.config.symbol,!0===e.config.counter){const t=function(){let t=e.level.attr("pki")[0];e.config.reverse&&(t=1*e.config.max+1*e.config.min-1*e.level.attr("pki")[0]),e.config.textRenderer&&!1!==e.config.textRenderer(Math.floor(t))?e.txtValue.attr("text",e.config.textRenderer(Math.floor(t))):e.config.humanFriendly?e.txtValue.attr("text",f(Math.floor(t),e.config.humanFriendlyDecimal)+e.config.symbol):e.config.formatNumber?e.txtValue.attr("text",s(Math.floor(t))+e.config.symbol):e.config.displayRemaining?e.txtValue.attr("text",(1*(e.config.max-t)).toFixed(e.config.decimals)+e.config.symbol):e.txtValue.attr("text",(1*t).toFixed(e.config.decimals)+e.config.symbol),l(e.txtValue,e.params.valueFontSize,e.params.valueY),t=null},n=function(){e.txtValue.attr({text:e.originalValue}),l(e.txtValue,e.params.valueFontSize,e.params.valueY)};this.bindEvent("raphael.anim.finish",n),this.bindEvent("raphael.anim.frame",t)}else{const t=function(){e.txtValue.attr({text:e.originalValue}),l(e.txtValue,e.params.valueFontSize,e.params.valueY)};this.bindEvent("raphael.anim.start",t)}let I=e.config.value;e.config.reverse&&(I=1*e.config.max+1*e.config.min-1*e.config.value),e.level.animate({pki:[I]},e.config.startAnimationTime,e.config.startAnimationType,e.config.onAnimationEnd),e.config.pointer&&e.needle.animate({ndl:[I]},e.config.startAnimationTime,e.config.startAnimationType),e.txtValue.animate({"fill-opacity":e.config.hideValue?"0":"1"},e.config.startAnimationTime,e.config.startAnimationType),e.txtLabel.animate({"fill-opacity":"1"},e.config.startAnimationTime,e.config.startAnimationType)};function e(t,n,e){switch(n){case"valueFontColor":if(!c(e))break;t.txtValue.attr({fill:e});break;case"labelFontColor":if(!c(e))break;t.txtMin.attr({fill:e}),t.txtMax.attr({fill:e}),t.txtLabel.attr({fill:e})}}function i(t,n,e,i,a,l){let r=i,c=!1;if(!o(t)&&(!o(e)&&"object"==typeof e&&t in e?(r=e[t],c=!0):!o(n)&&"object"==typeof n&&t in n?(r=n[t],c=!0):r=i,!0===c&&!o(a)))switch(a){case"int":r=parseInt(r,10);break;case"float":r=parseFloat(r)}return r}function o(t){return null===t||void 0===t}function a(t,n,e,i,o){let a,l,c,f,s,m,g,u,d,p,x;const h=o&&o.ranges&&o.ranges.length>0;if(i=i||h,h){!0===o.percents&&(t=100*n);for(let n=0;n=o.ranges[n].lo&&t<=o.ranges[n].hi)return o.ranges[n].color}const b=e.length;if(1===b)return e[0];const v=i?1/b:1/(b-1),M=[];for(let t=0;t9)&&t.node.firstChild.attributes.dy&&(t.node.firstChild.attributes.dy.value=0)}function r(t){return"#"===t.charAt(0)?t.substring(1,7):t}function c(t){return"string"==typeof t&&/^#([0-9A-Fa-f]{3}){1,2}$/.test(t)}function f(t,n){const e=Math.pow(10,n),i=" KMGTPE";let o=0;for(;(t>=1e3||t<=-1e3)&&++o=i.length?i.length-1:o,Math.round(t*e)/e+i[o]}function s(t){const n=t.toString().split(".");return n[0]=n[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),n.join(".")}function m(t,n){let e="";return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(t,"").getPropertyValue(n):t.currentStyle&&(n=n.replace(/-(\w)/g,function(t,n){return n.toUpperCase()}),e=t.currentStyle[n]),e}n.prototype.bindEvent=function(n,e){n+="."+this.level.id,this.events[n]&&t.eve.off(n,this.events[n]),t.eve.on(n,e),this.events[n]=e},n.prototype.refresh=function(t,n,e,i){const o=this;let r;n=u(n)?n:null,e=u(e)?e:null,null!==(i=i||null)&&(o.config.label=i,o.txtLabel.attr({text:o.config.label}),l(o.txtLabel,o.params.labelFontSize,o.params.labelY)),null!==e&&(o.config.min=e,o.txtMinimum=o.config.min,o.config.minTxt?o.txtMinimum=o.config.minTxt:o.config.humanFriendly?o.txtMinimum=f(o.config.min,o.config.humanFriendlyDecimal):o.config.formatNumber&&(o.txtMinimum=s(o.config.min)),o.config.reverse?(o.txtMax.attr({text:o.txtMinimum}),l(o.txtMax,o.params.minFontSize,o.params.minY)):(o.txtMin.attr({text:o.txtMinimum}),l(o.txtMin,o.params.minFontSize,o.params.minY))),null!==n&&(o.config.max=n,o.txtMaximum=o.config.max,o.config.maxTxt?o.txtMaximum=o.config.maxTxt:o.config.humanFriendly?o.txtMaximum=f(o.config.max,o.config.humanFriendlyDecimal):o.config.formatNumber&&(o.txtMaximum=s(o.config.max)),o.config.reverse?(o.txtMin.attr({text:o.txtMaximum}),l(o.txtMin,o.params.maxFontSize,o.params.maxY)):(o.txtMax.attr({text:o.txtMaximum}),l(o.txtMax,o.params.maxFontSize,o.params.maxY))),r=t,1*t>1*o.config.max&&(t=1*o.config.max),1*t<1*o.config.min&&(t=1*o.config.min);const c=a(t,(t-o.config.min)/(o.config.max-o.config.min),o.config.levelColors,o.config.noGradient,o.config.customSectors);r=o.config.textRenderer&&!1!==o.config.textRenderer(r)?o.config.textRenderer(r):o.config.humanFriendly?f(r,o.config.humanFriendlyDecimal)+o.config.symbol:o.config.formatNumber?s((1*r).toFixed(o.config.decimals))+o.config.symbol:o.config.displayRemaining?(1*(o.config.max-r)).toFixed(o.config.decimals)+o.config.symbol:(1*r).toFixed(o.config.decimals)+o.config.symbol,o.originalValue=r,o.config.value=1*t,o.config.counter||(o.txtValue.attr({text:r}),l(o.txtValue,o.params.valueFontSize,o.params.valueY));let m=o.config.value;o.config.reverse&&(m=1*o.config.max+1*o.config.min-1*o.config.value),o.level.animate({pki:[m],fill:c},o.config.refreshAnimationTime,o.config.refreshAnimationType,o.config.onAnimationEnd),o.config.pointer&&o.needle.animate({ndl:[m]},o.config.refreshAnimationTime,o.config.refreshAnimationType)},n.prototype.update=function(t,n){const i=this;if(t instanceof Object)for(const o in t)e(i,o,n=t[o]);else e(i,t,n)},n.prototype.destroy=function(){this.node&&this.node.parentNode&&(this.node.innerHTML="");for(const n in this.events)t.eve.off(n,this.events[n]);this.events={}},n.prototype.generateShadow=function(t,n){const e=this,i="inner-shadow-"+(e.config.id||e.config.classId),o=document.createElementNS(t,"filter");o.setAttribute("id",i),n.appendChild(o);const a=document.createElementNS(t,"feOffset");a.setAttribute("dx",0),a.setAttribute("dy",e.config.shadowVerticalOffset),o.appendChild(a);const l=document.createElementNS(t,"feGaussianBlur");l.setAttribute("result","offset-blur"),l.setAttribute("stdDeviation",e.config.shadowSize),o.appendChild(l);const r=document.createElementNS(t,"feComposite");r.setAttribute("operator","out"),r.setAttribute("in","SourceGraphic"),r.setAttribute("in2","offset-blur"),r.setAttribute("result","inverse"),o.appendChild(r);const c=document.createElementNS(t,"feFlood");c.setAttribute("flood-color","black"),c.setAttribute("flood-opacity",e.config.shadowOpacity),c.setAttribute("result","color"),o.appendChild(c);const f=document.createElementNS(t,"feComposite");f.setAttribute("operator","in"),f.setAttribute("in","color"),f.setAttribute("in2","inverse"),f.setAttribute("result","shadow"),o.appendChild(f);const s=document.createElementNS(t,"feComposite");s.setAttribute("operator","over"),s.setAttribute("in","shadow"),s.setAttribute("in2","SourceGraphic"),o.appendChild(s),e.config.showInnerShadow&&(e.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+i+")"),e.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+i+")"))};const g=function(){let t=3;const n=document.createElement("div"),e=n.getElementsByTagName("i");for(;e[0];)n.innerHTML="\x3c!--[if gt IE "+ ++t+"]>4?t:void 0}();function u(t){return null!==t&&void 0!==t&&!isNaN(t)}return n}); //# sourceMappingURL=justgage.min.js.map \ No newline at end of file diff --git a/dist/justgage.min.js.map b/dist/justgage.min.js.map index 2754183..ed942eb 100644 --- a/dist/justgage.min.js.map +++ b/dist/justgage.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["../justgage.js"],"names":["root","factory","define","amd","raphael","JustGage","module","exports","require","Raphael","window","this","config","obj","events","isUndefined","id","parentNode","node","document","getElementById","dataset","defaults","canvasW","canvasH","widgetW","widgetH","aspect","dx","dy","valueFontSize","valueX","valueY","labelFontSize","labelX","labelY","minFontSize","minX","minY","maxFontSize","maxX","maxY","out","i","arguments","length","key","Object","prototype","hasOwnProperty","call","extend","value","kvLookup","width","height","valueFontColor","valueFontFamily","symbol","min","minTxt","max","maxTxt","reverse","humanFriendlyDecimal","textRenderer","onAnimationEnd","gaugeWidthScale","gaugeColor","label","labelFontColor","labelFontFamily","shadowOpacity","shadowSize","shadowVerticalOffset","levelColors","startAnimationTime","startAnimationType","refreshAnimationTime","refreshAnimationType","donutStartAngle","valueMinFontSize","labelMinFontSize","minLabelMinFontSize","maxLabelMinFontSize","hideValue","hideMinMax","showInnerShadow","humanFriendly","noGradient","donut","relativeGaugeSize","counter","decimals","customSectors","formatNumber","pointer","pointerOptions","displayRemaining","originalValue","canvas","setViewBox","getStyle","slice","params","customAttributes","pki","w","h","gws","alpha","Ro","Ri","Cx","Cy","Xo","Yo","Xi","Yi","path","Math","PI","cos","sin","ndl","Xc","Yc","Xz","Yz","Xa","Ya","Xb","Yb","dlt","dlb","dw","toplength","undefined","bottomlength","bottomwidth","gauge","attr","stroke","fill","level","getColor","transform","needle","stroke-width","stroke_width","stroke-linecap","stroke_linecap","color","txtValue","text","font-size","font-weight","font-family","fill-opacity","setDy","txtLabel","txtMinimum","humanFriendlyNumber","txtMin","txtMaximum","txtMax","defs","childNodes","svg","ie","onCreateElementNsReady","func","createElementNS","setTimeout","generateShadow","toFixed","onFrame","currentValue","floor","onFinish","bindEvent","onStart","rvl","animate","updateProp","option","val","isHexColor","tablea","tableb","defval","datatype","delimiter","canConvert","parseInt","parseFloat","v","pct","col","custSec","percentage","rval","gval","bval","lower","upper","range","rangePct","pctLower","pctUpper","cust","ranges","percents","lo","hi","no","inc","colors","cutHex","substring","r","g","b","join","j","elem","fontSize","txtYpos","firstChild","attributes","str","charAt","test","n","d","d2","pow","s","round","x","parts","toString","split","replace","oElm","strCssRule","strValue","defaultView","getComputedStyle","getPropertyValue","currentStyle","strMatch","p1","toUpperCase","eventName","eve","off","on","refresh","displayVal","isNumber","update","options","destroy","innerHTML","event","sid","gaussFilter","setAttribute","appendChild","feOffset","feGaussianBlur","feComposite1","feFlood","feComposite2","feComposite3","location","pathname","div","createElement","all","getElementsByTagName","isNaN"],"mappings":"CAOA,SAAWA,EAAMC,GACO,mBAAXC,QAAyBA,OAAOC,IACzCD,QAAQ,WAAY,SAAUE,GAE5B,OAAQJ,EAAKK,SAAWJ,EAAQG,KAEP,iBAAXE,QAAuBA,OAAOC,QAE9CD,OAAOC,QAAUP,EAAKK,SAAWJ,EAAQO,QAAQ,YAIjDR,EAAKK,SAAWJ,EAAQQ,SAZ5B,CAcqB,oBAAXC,OAAyBA,OAASC,KAAM,SAAUF,GAC1D,MAAMJ,EAAW,SAAUO,GACzB,MAAMC,EAAMF,KAKZ,GAHAE,EAAIC,UAGAC,EAAYH,GAEd,OAAO,EAGT,GAAKG,EAAYH,EAAOI,IAMjB,CAAA,GAAKD,EAAYH,EAAOK,YAM7B,OAAO,EALPJ,EAAIK,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a,WAAY,MACtCM,EAAaN,aAAa,KAAM,SAChCM,EAAaN,aAAa,MAAO,WACjCM,EAAaN,aAAa,SAAU,UACpCD,EAAYE,YAAYK,GAGxB,MAAMC,EAAehQ,SAASyJ,gBAAgBJ,EAAK,eACnD2G,EAAaP,aAAa,WAAY,QACtCO,EAAaP,aAAa,KAAM,UAChCO,EAAaP,aAAa,MAAO,iBACjCD,EAAYE,YAAYM,GAGpBtQ,EAAID,OAAO2E,kBACb1E,EAAIuF,OAAOA,OAAOmE,WAAW,GAAGqG,aAC9B,SACA,OAASlQ,OAAO0Q,SAASC,SAAW,IAAMX,EAAM,KAElD7P,EAAIuF,OAAOA,OAAOmE,WAAW,GAAGqG,aAC9B,SACA,OAASlQ,OAAO0Q,SAASC,SAAW,IAAMX,EAAM,OA+NtD,MAAMjG,EAAK,WACT,IAAI2B,EAAI,EACR,MAAMkF,EAAMnQ,SAASoQ,cAAc,OAC7BC,EAAMF,EAAIG,qBAAqB,KAErC,KAAOD,EAAI,IACTF,EAAId,UAAY,uBAAqBpE,EAAI,2BAE3C,OAAOA,EAAI,EAAIA,OAAI3D,EARV,GA8BX,SAAS2H,EAAS3B,GAChB,OAAa,OAANA,QAAoBhG,IAANgG,IAAoBiD,MAAMjD,GAGjD,OAAOpO","file":"justgage.min.js"} \ No newline at end of file +{"version":3,"sources":["../justgage.js"],"names":["root","factory","define","amd","raphael","JustGage","module","exports","require","Raphael","window","this","config","obj","events","isUndefined","id","parentNode","node","document","getElementById","dataset","defaults","canvasW","canvasH","widgetW","widgetH","aspect","dx","dy","valueFontSize","valueX","valueY","labelFontSize","labelX","labelY","minFontSize","minX","minY","maxFontSize","maxX","maxY","out","i","arguments","length","key","Object","prototype","hasOwnProperty","call","extend","classId","replace","c","r","Math","random","v","toString","value","kvLookup","width","height","valueFontColor","valueFontFamily","symbol","min","minTxt","max","maxTxt","reverse","humanFriendlyDecimal","textRenderer","onAnimationEnd","gaugeWidthScale","gaugeColor","label","labelFontColor","labelFontFamily","shadowOpacity","shadowSize","shadowVerticalOffset","levelColors","startAnimationTime","startAnimationType","refreshAnimationTime","refreshAnimationType","donutStartAngle","valueMinFontSize","labelMinFontSize","minLabelMinFontSize","maxLabelMinFontSize","hideValue","hideMinMax","showInnerShadow","humanFriendly","noGradient","donut","relativeGaugeSize","counter","decimals","customSectors","formatNumber","pointer","pointerOptions","displayRemaining","originalValue","canvas","setViewBox","getStyle","slice","params","customAttributes","pki","w","h","gws","alpha","Ro","Ri","Cx","Cy","Xo","Yo","Xi","Yi","path","PI","cos","sin","ndl","Xc","Yc","Xz","Yz","Xa","Ya","Xb","Yb","dlt","dlb","dw","toplength","undefined","bottomlength","bottomwidth","gauge","attr","stroke","fill","level","getColor","transform","needle","stroke-width","stroke_width","stroke-linecap","stroke_linecap","color","txtValue","text","font-size","font-weight","font-family","fill-opacity","setDy","txtLabel","txtMinimum","humanFriendlyNumber","txtMin","txtMaximum","txtMax","defs","childNodes","svg","ie","onCreateElementNsReady","func","createElementNS","setTimeout","generateShadow","toFixed","onFrame","currentValue","floor","onFinish","bindEvent","onStart","rvl","animate","updateProp","option","val","isHexColor","tablea","tableb","defval","datatype","delimiter","canConvert","parseInt","parseFloat","pct","col","custSec","percentage","rval","gval","bval","lower","upper","range","rangePct","pctLower","pctUpper","cust","ranges","percents","lo","hi","no","inc","colors","cutHex","substring","g","b","join","j","elem","fontSize","txtYpos","firstChild","attributes","str","charAt","test","n","d","d2","pow","s","round","x","parts","split","oElm","strCssRule","strValue","defaultView","getComputedStyle","getPropertyValue","currentStyle","strMatch","p1","toUpperCase","eventName","eve","off","on","refresh","displayVal","isNumber","update","options","destroy","innerHTML","event","sid","gaussFilter","setAttribute","appendChild","feOffset","feGaussianBlur","feComposite1","feFlood","feComposite2","feComposite3","div","createElement","all","getElementsByTagName","isNaN"],"mappings":"CAOA,SAAWA,EAAMC,GACO,mBAAXC,QAAyBA,OAAOC,IACzCD,QAAQ,WAAY,SAAUE,GAE5B,OAAQJ,EAAKK,SAAW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oB6C,MAAM7C,GAkBjD,OAAOzO","file":"justgage.min.js"} \ No newline at end of file diff --git a/docs/justgage.js b/docs/justgage.js index f99e3d9..923a069 100644 --- a/docs/justgage.js +++ b/docs/justgage.js @@ -61,6 +61,10 @@ // this is container element id id: config.id, + // classId : string + // this is the class id utilize when generating styles + classId: uuid(), + // value : float // value gauge is showing value: kvLookup("value", config, dataset, 0, "float"), @@ -1259,7 +1263,7 @@ */ JustGage.prototype.generateShadow = function (svg, defs) { const obj = this; - const sid = "inner-shadow-" + obj.config.id; + const sid = "inner-shadow-" + (obj.config.id || obj.config.classId); // FILTER const gaussFilter = document.createElementNS(svg, "filter"); @@ -1312,11 +1316,11 @@ if (obj.config.showInnerShadow) { obj.canvas.canvas.childNodes[2].setAttribute( "filter", - "url(" + window.location.pathname + "#" + sid + ")" + "url(#" + sid + ")" ); obj.canvas.canvas.childNodes[3].setAttribute( "filter", - "url(" + window.location.pathname + "#" + sid + ")" + "url(#" + sid + ")" ); } }; @@ -1573,5 +1577,20 @@ return n !== null && n !== undefined && !isNaN(n); } + /** + * Generate UUID + * @returns UUID + */ + function uuid() { + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace( + /[xy]/g, + function (c) { + const r = (Math.random() * 16) | 0; + const v = c === "x" ? r : (r & 0x3) | 0x8; + return v.toString(16); + } + ); + } + return JustGage; }); diff --git a/package-lock.json b/package-lock.json index a3ac26f..fd19513 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { "name": "justgage", - "version": "1.5.0", + "version": "1.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.5.0", + "version": "1.5.1", "license": "MIT", "dependencies": { "raphael": "^2.3.0" diff --git a/package.json b/package.json index 9742c40..d56df5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "justgage", - "version": "1.5.0", + "version": "1.5.1", "description": "JustGage is a handy JavaScript plugin for generating and animating nice & clean gauges. It is based on Raphaël library for vector drawing, so it’s completely resolution independent and self-adjusting.", "main": "index.js", "scripts": {