From d3615affe21c532a1d8e8df20b00c2569bd0c7de Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 6 Aug 2019 17:15:20 +0200 Subject: [PATCH] Release 1.3.1 --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++------ dist/justgage.js | 22 ++++++++++++++++++---- dist/justgage.min.js | 2 +- dist/justgage.min.js.map | 2 +- package-lock.json | 2 +- package.json | 7 +++++-- 6 files changed, 58 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a184b13..ab9aa3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,28 @@ 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.3.1](https://github.com/toorshia/justgage/compare/v1.3.0...v1.3.1) + +> 6 August 2019 + +- add displayRemaining property [`#275`](https://github.com/toorshia/justgage/pull/275) +- Update .refresh() to support min value [`#265`](https://github.com/toorshia/justgage/pull/265) +- [feat] Made JustGage AMD andCommonJS friendly [`8815ad8`](https://github.com/toorshia/justgage/commit/8815ad8af76fae52979b6ed8976d3cfe123c359b) +- [build] Dist files and updated release script [`4b235eb`](https://github.com/toorshia/justgage/commit/4b235ebc0849072abec169ca75d2f7b6e018ff56) +- [docs] Display remaining example and docs [`5af3d23`](https://github.com/toorshia/justgage/commit/5af3d239945209fb50a683d19bb9fe241524a11b) +- [fix] Reverse example customSectors [`350a7db`](https://github.com/toorshia/justgage/commit/350a7db1b72ab1a16ded0a83558317e2029cc9de) +- [feat] Raphael 2.2.8 [`5debfd6`](https://github.com/toorshia/justgage/commit/5debfd6fe975ab78779bef0ce12671e9da88fc78) +- [fix] Destroy event and example [`15f3c26`](https://github.com/toorshia/justgage/commit/15f3c269dd525cbd96c4a9a924df5e5bb6a6e7c5) +- [feat] Gruntfile for dist [`b6cd2cb`](https://github.com/toorshia/justgage/commit/b6cd2cb74afb2ee39efb762795bb7769a0c5080b) +- [docs] Methods section [`d6d28cf`](https://github.com/toorshia/justgage/commit/d6d28cf4294e0b62fbe87e5becca81433f8ba459) +- [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) +- [refactor] Comments [`ca519ed`](https://github.com/toorshia/justgage/commit/ca519ed2461c9cce95b44b5917921dcb5e8f327d) +- [fix] Eve not defined [`81cff4c`](https://github.com/toorshia/justgage/commit/81cff4cd1ef3a57df5575421730b67a2aa3207de) +- [docs] Added label to refresh [`7d21cb9`](https://github.com/toorshia/justgage/commit/7d21cb9b80d60c93210e8ff5e8465cedbc7aabe2) +- [fix] Removed const [`2d1773a`](https://github.com/toorshia/justgage/commit/2d1773a92b508773bc5557fff78350a3fea9c3fe) + #### [v1.3.0](https://github.com/toorshia/justgage/compare/1.2.9...v1.3.0) > 5 August 2019 @@ -15,26 +37,30 @@ 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) - [build] Added changelog and release scripts [`afee0b8`](https://github.com/toorshia/justgage/commit/afee0b8d2ee95f9236a5cfeb0f4a3df3118179b6) - removed silly typho [`a1674e3`](https://github.com/toorshia/justgage/commit/a1674e3a2c63d710d9367ff4afa7c80fea80fdae) +- actually I needed those exports [`1cf2444`](https://github.com/toorshia/justgage/commit/1cf2444ab38988720f885d35b57795d1fc1d8d38) - justgauge.js now imports raphael and exports itself as a module [`9455c88`](https://github.com/toorshia/justgage/commit/9455c88b5d103609b035c0035fee2b6452adb21b) - Fix custom sectors colors [`10dc1f9`](https://github.com/toorshia/justgage/commit/10dc1f93883e0024f8f6d495b53886f3fb4f517b) -- actually I needed those exports [`1cf2444`](https://github.com/toorshia/justgage/commit/1cf2444ab38988720f885d35b57795d1fc1d8d38) - [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) -- added raphael as a dependency in package.json [`a702f09`](https://github.com/toorshia/justgage/commit/a702f0941fe35cf35c775b073fa6ad987219bc28) - index.js to standarize commonjs module [`5ab4013`](https://github.com/toorshia/justgage/commit/5ab4013584c1447dc1c326df1802df58f8cfbce8) -- [fix] Default pointerOptions value [`eae6844`](https://github.com/toorshia/justgage/commit/eae684440cae2375f207b1691224bfeebe11a7d3) -- fixed route [`7231c75`](https://github.com/toorshia/justgage/commit/7231c7517309334d71f2ac635a103f53a5e76f23) -- main: now references index.js [`d062a85`](https://github.com/toorshia/justgage/commit/d062a85b518aa4f1fa7bbe4be726ae12647db552) +- added raphael as a dependency in package.json [`a702f09`](https://github.com/toorshia/justgage/commit/a702f0941fe35cf35c775b073fa6ad987219bc28) +- [chore] Enabled npm publish on release-it [`ec2853f`](https://github.com/toorshia/justgage/commit/ec2853fd506cf9062a3d039223f7cd44dd5a15c5) - [build] Fixed version in package.json [`f6b03b5`](https://github.com/toorshia/justgage/commit/f6b03b58631382a0cb47f7e8561ff86580c227e3) - [build] Fix raphael dependencies [`f71c4a2`](https://github.com/toorshia/justgage/commit/f71c4a2045851ad7db259f793b1c8454e796839c) -- [chore] Enabled npm publish on release-it [`ec2853f`](https://github.com/toorshia/justgage/commit/ec2853fd506cf9062a3d039223f7cd44dd5a15c5) +- fixed route [`7231c75`](https://github.com/toorshia/justgage/commit/7231c7517309334d71f2ac635a103f53a5e76f23) +- main: now references index.js [`d062a85`](https://github.com/toorshia/justgage/commit/d062a85b518aa4f1fa7bbe4be726ae12647db552) +- [fix] Default pointerOptions value [`eae6844`](https://github.com/toorshia/justgage/commit/eae684440cae2375f207b1691224bfeebe11a7d3) - [build] Ignore changelog old in npm release [`498d4af`](https://github.com/toorshia/justgage/commit/498d4afd563692c8a6b6aef7ab57c83470d4a207) #### [1.2.9](https://github.com/toorshia/justgage/compare/1.2.8...1.2.9) diff --git a/dist/justgage.js b/dist/justgage.js index 1ded3e6..222693b 100644 --- a/dist/justgage.js +++ b/dist/justgage.js @@ -20,7 +20,9 @@ JustGage = function (config) { - var obj = this; + var obj = this + + obj.events = {} // Helps in case developer wants to debug it. unobtrusive if (config === null || config === undefined) { @@ -734,7 +736,10 @@ if (obj.config.counter === true) { //on each animation frame - eve.on("raphael.anim.frame." + (obj.level.id), function () { + Raphael.eve.on("raphael.anim.frame." + (obj.level.id), function () { + + if(!obj.events["raphael.anim.frame." + (obj.level.id)]) obj.events["raphael.anim.frame." + (obj.level.id)] = this + var currentValue = obj.level.attr("pki")[0]; if (obj.config.reverse) { currentValue = (obj.config.max * 1) + (obj.config.min * 1) - (obj.level.attr("pki")[0] * 1); @@ -754,7 +759,10 @@ currentValue = null; }); //on animation end - eve.on("raphael.anim.finish." + (obj.level.id), function () { + Raphael.eve.on("raphael.anim.finish." + (obj.level.id), function () { + + if(!obj.events["raphael.anim.finish." + (obj.level.id)]) obj.events["raphael.anim.finish." + (obj.level.id)] = this + obj.txtValue.attr({ "text": obj.originalValue }); @@ -762,7 +770,10 @@ }); } else { //on animation start - eve.on("raphael.anim.start." + (obj.level.id), function () { + Raphael.eve.on("raphael.anim.start." + (obj.level.id), function () { + + if(!obj.events["raphael.anim.start." + (obj.level.id)]) obj.events["raphael.anim.start." + (obj.level.id)] = this + obj.txtValue.attr({ "text": obj.originalValue }); @@ -961,6 +972,9 @@ /** Destroy gauge object */ JustGage.prototype.destroy = function () { if (this.node && this.node.parentNode) this.node.innerHTML = '' + + for(var event in this.events) + Raphael.eve.off(event, this.events[event]) }; /** Generate shadow */ diff --git a/dist/justgage.min.js b/dist/justgage.min.js index 4961db2..44c43ea 100644 --- a/dist/justgage.min.js +++ b/dist/justgage.min.js @@ -1,2 +1,2 @@ -!function(n,i){"function"==typeof define&&define.amd?define(["raphael"],function(t){return n.JustGage=i(t)}):"object"==typeof module&&module.exports?module.exports=n.JustGage=i(require("raphael")):n.JustGage=i(Raphael)}(this,function(T){function O(t,n,i,e,a){var o=e,r=!1;if(null!=t&&(null!=i&&"object"==typeof i&&t in i?(o=i[t],r=!0):null!=n&&"object"==typeof n&&t in n?(o=n[t],r=!0):o=e,!0===r&&null!=a))switch(a){case"int":o=parseInt(o,10);break;case"float":o=parseFloat(o)}return o}function C(t,n,i,e,a){var o,r,l,c,m,f,g,s,u,d,p,x,h,v,b=a&&a.ranges&&0=a.ranges[M].lo&&t<=a.ranges[M].hi)return a.ranges[M].color}if(1===(o=i.length))return i[0];for(r=e?1/o:1/(o-1),l=[],M=0;M"),refreshAnimationTime:O("refreshAnimationTime",t,M,700),refreshAnimationType:O("refreshAnimationType",t,M,">"),donutStartAngle:O("donutStartAngle",t,M,90),valueMinFontSize:O("valueMinFontSize",t,M,16),labelMinFontSize:O("labelMinFontSize",t,M,10),minLabelMinFontSize:O("minLabelMinFontSize",t,M,10),maxLabelMinFontSize:O("maxLabelMinFontSize",t,M,10),hideValue:O("hideValue",t,M,!1),hideMinMax:O("hideMinMax",t,M,!1),showInnerShadow:O("showInnerShadow",t,M,!1),humanFriendly:O("humanFriendly",t,M,!1),noGradient:O("noGradient",t,M,!1),donut:O("donut",t,M,!1),relativeGaugeSize:O("relativeGaugeSize",t,M,!1),counter:O("counter",t,M,!1),decimals:O("decimals",t,M,0),customSectors:O("customSectors",t,M,{}),formatNumber:O("formatNumber",t,M,!1),pointer:O("pointer",t,M,!1),pointerOptions:O("pointerOptions",t,M,{}),displayRemaining:O("displayRemaining",t,M,!1)},A.config.value>A.config.max&&(A.config.value=A.config.max),A.config.valueA.config.valueMinFontSize?a/6.5:A.config.valueMinFontSize,m=r+e/2,f=l+a/1.275,g=a/16>A.config.labelMinFontSize?a/16:A.config.labelMinFontSize,s=r+e/2,u=f+c/2+5,d=a/16>A.config.minLabelMinFontSize?a/16:A.config.minLabelMinFontSize,p=r+e/10+e/6.666666666666667*A.config.gaugeWidthScale/2,x=u,a/16>A.config.maxLabelMinFontSize?a/16:A.config.maxLabelMinFontSize),r+e-e/10-e/6.666666666666667*A.config.gaugeWidthScale/2),u),A.params={canvasW:n,canvasH:i,widgetW:e,widgetH:a,dx:r,dy:l,valueFontSize:c,valueX:m,valueY:f,labelFontSize:g,labelX:s,labelY:u,minFontSize:d,minX:p,minY:x,maxFontSize:h,maxX:v,maxY:b},b=null,A.canvas.customAttributes.pki=function(t,n,i,e,a,o,r,l,c,m){var f,g,s,u,d,p;return n<0&&(i-=n,t-=n,n=0),c?(f=(1-2*(t-n)/(i-n))*Math.PI,p="M"+((u=e/2+o)-(s=(g=e/2-e/30)-e/6.666666666666667*l))+","+(d=a/2+r)+" ",p+="L"+(u-g)+","+d+" ",(i-n)/21*r.config.max&&(t=1*r.config.max),1*t<1*r.config.min&&(t=1*r.config.min),o=C(t,(t-r.config.min)/(r.config.max-r.config.min),r.config.levelColors,r.config.noGradient,r.config.customSectors),a=r.config.textRenderer?r.config.textRenderer(a):r.config.humanFriendly?k(a,r.config.humanFriendlyDecimal)+r.config.symbol:r.config.formatNumber?W((1*a).toFixed(r.config.decimals))+r.config.symbol:r.config.displayRemaining?(1*(r.config.max-a)).toFixed(r.config.decimals)+r.config.symbol:(1*a).toFixed(r.config.decimals)+r.config.symbol,r.originalValue=a,r.config.value=1*t,r.config.counter||(r.txtValue.attr({text:a}),N(r.txtValue,r.params.valueFontSize,r.params.valueY));var l=r.config.value;r.config.reverse&&(l=1*r.config.max+1*r.config.min-1*r.config.value),r.level.animate({pki:[l,r.config.min,r.config.max,r.params.widgetW,r.params.widgetH,r.params.dx,r.params.dy,r.config.gaugeWidthScale,r.config.donut,r.config.reverse],fill:o},r.config.refreshAnimationTime,r.config.refreshAnimationType,r.config.onAnimationEnd),r.config.pointer&&r.needle.animate({ndl:[l,r.config.min,r.config.max,r.params.widgetW,r.params.widgetH,r.params.dx,r.params.dy,r.config.gaugeWidthScale,r.config.donut]},r.config.refreshAnimationTime,r.config.refreshAnimationType),i=null},JustGage.prototype.destroy=function(){this.node&&this.node.parentNode&&(this.node.innerHTML="")},JustGage.prototype.generateShadow=function(t,n){var i,e,a,o,r,l,c,m=this,f="inner-shadow-"+m.config.id;(i=document.createElementNS(t,"filter")).setAttribute("id",f),n.appendChild(i),(e=document.createElementNS(t,"feOffset")).setAttribute("dx",0),e.setAttribute("dy",m.config.shadowVerticalOffset),i.appendChild(e),(a=document.createElementNS(t,"feGaussianBlur")).setAttribute("result","offset-blur"),a.setAttribute("stdDeviation",m.config.shadowSize),i.appendChild(a),(o=document.createElementNS(t,"feComposite")).setAttribute("operator","out"),o.setAttribute("in","SourceGraphic"),o.setAttribute("in2","offset-blur"),o.setAttribute("result","inverse"),i.appendChild(o),(r=document.createElementNS(t,"feFlood")).setAttribute("flood-color","black"),r.setAttribute("flood-opacity",m.config.shadowOpacity),r.setAttribute("result","color"),i.appendChild(r),(l=document.createElementNS(t,"feComposite")).setAttribute("operator","in"),l.setAttribute("in","color"),l.setAttribute("in2","inverse"),l.setAttribute("result","shadow"),i.appendChild(l),(c=document.createElementNS(t,"feComposite")).setAttribute("operator","over"),c.setAttribute("in","shadow"),c.setAttribute("in2","SourceGraphic"),i.appendChild(c),m.config.showInnerShadow&&(m.canvas.canvas.childNodes[2].setAttribute("filter","url("+window.location.pathname+"#"+f+")"),m.canvas.canvas.childNodes[3].setAttribute("filter","url("+window.location.pathname+"#"+f+")")),c=null};var Y=function(){for(var t=3,n=document.createElement("div"),i=n.getElementsByTagName("i");n.innerHTML="\x3c!--[if gt IE "+ ++t+"]>=a.ranges[M].lo&&t<=a.ranges[M].hi)return a.ranges[M].color}if(1===(o=e.length))return e[0];for(r=i?1/o:1/(o-1),l=[],M=0;M"),refreshAnimationTime:O("refreshAnimationTime",t,M,700),refreshAnimationType:O("refreshAnimationType",t,M,">"),donutStartAngle:O("donutStartAngle",t,M,90),valueMinFontSize:O("valueMinFontSize",t,M,16),labelMinFontSize:O("labelMinFontSize",t,M,10),minLabelMinFontSize:O("minLabelMinFontSize",t,M,10),maxLabelMinFontSize:O("maxLabelMinFontSize",t,M,10),hideValue:O("hideValue",t,M,!1),hideMinMax:O("hideMinMax",t,M,!1),showInnerShadow:O("showInnerShadow",t,M,!1),humanFriendly:O("humanFriendly",t,M,!1),noGradient:O("noGradient",t,M,!1),donut:O("donut",t,M,!1),relativeGaugeSize:O("relativeGaugeSize",t,M,!1),counter:O("counter",t,M,!1),decimals:O("decimals",t,M,0),customSectors:O("customSectors",t,M,{}),formatNumber:O("formatNumber",t,M,!1),pointer:O("pointer",t,M,!1),pointerOptions:O("pointerOptions",t,M,{}),displayRemaining:O("displayRemaining",t,M,!1)},A.config.value>A.config.max&&(A.config.value=A.config.max),A.config.valueA.config.valueMinFontSize?a/6.5:A.config.valueMinFontSize,m=r+i/2,f=l+a/1.275,g=a/16>A.config.labelMinFontSize?a/16:A.config.labelMinFontSize,s=r+i/2,u=f+c/2+5,d=a/16>A.config.minLabelMinFontSize?a/16:A.config.minLabelMinFontSize,p=r+i/10+i/6.666666666666667*A.config.gaugeWidthScale/2,h=u,a/16>A.config.maxLabelMinFontSize?a/16:A.config.maxLabelMinFontSize),r+i-i/10-i/6.666666666666667*A.config.gaugeWidthScale/2),u),A.params={canvasW:n,canvasH:e,widgetW:i,widgetH:a,dx:r,dy:l,valueFontSize:c,valueX:m,valueY:f,labelFontSize:g,labelX:s,labelY:u,minFontSize:d,minX:p,minY:h,maxFontSize:x,maxX:v,maxY:b},b=null,A.canvas.customAttributes.pki=function(t,n,e,i,a,o,r,l,c,m){var f,g,s,u,d,p;return n<0&&(e-=n,t-=n,n=0),c?(f=(1-2*(t-n)/(e-n))*Math.PI,p="M"+((u=i/2+o)-(s=(g=i/2-i/30)-i/6.666666666666667*l))+","+(d=a/2+r)+" ",p+="L"+(u-g)+","+d+" ",(e-n)/21*r.config.max&&(t=1*r.config.max),1*t<1*r.config.min&&(t=1*r.config.min),o=C(t,(t-r.config.min)/(r.config.max-r.config.min),r.config.levelColors,r.config.noGradient,r.config.customSectors),a=r.config.textRenderer?r.config.textRenderer(a):r.config.humanFriendly?k(a,r.config.humanFriendlyDecimal)+r.config.symbol:r.config.formatNumber?W((1*a).toFixed(r.config.decimals))+r.config.symbol:r.config.displayRemaining?(1*(r.config.max-a)).toFixed(r.config.decimals)+r.config.symbol:(1*a).toFixed(r.config.decimals)+r.config.symbol,r.originalValue=a,r.config.value=1*t,r.config.counter||(r.txtValue.attr({text:a}),N(r.txtValue,r.params.valueFontSize,r.params.valueY));var l=r.config.value;r.config.reverse&&(l=1*r.config.max+1*r.config.min-1*r.config.value),r.level.animate({pki:[l,r.config.min,r.config.max,r.params.widgetW,r.params.widgetH,r.params.dx,r.params.dy,r.config.gaugeWidthScale,r.config.donut,r.config.reverse],fill:o},r.config.refreshAnimationTime,r.config.refreshAnimationType,r.config.onAnimationEnd),r.config.pointer&&r.needle.animate({ndl:[l,r.config.min,r.config.max,r.params.widgetW,r.params.widgetH,r.params.dx,r.params.dy,r.config.gaugeWidthScale,r.config.donut]},r.config.refreshAnimationTime,r.config.refreshAnimationType),e=null},JustGage.prototype.destroy=function(){for(var t in this.node&&this.node.parentNode&&(this.node.innerHTML=""),this.events)T.eve.off(t,this.events[t])},JustGage.prototype.generateShadow=function(t,n){var e,i,a,o,r,l,c,m=this,f="inner-shadow-"+m.config.id;(e=document.createElementNS(t,"filter")).setAttribute("id",f),n.appendChild(e),(i=document.createElementNS(t,"feOffset")).setAttribute("dx",0),i.setAttribute("dy",m.config.shadowVerticalOffset),e.appendChild(i),(a=document.createElementNS(t,"feGaussianBlur")).setAttribute("result","offset-blur"),a.setAttribute("stdDeviation",m.config.shadowSize),e.appendChild(a),(o=document.createElementNS(t,"feComposite")).setAttribute("operator","out"),o.setAttribute("in","SourceGraphic"),o.setAttribute("in2","offset-blur"),o.setAttribute("result","inverse"),e.appendChild(o),(r=document.createElementNS(t,"feFlood")).setAttribute("flood-color","black"),r.setAttribute("flood-opacity",m.config.shadowOpacity),r.setAttribute("result","color"),e.appendChild(r),(l=document.createElementNS(t,"feComposite")).setAttribute("operator","in"),l.setAttribute("in","color"),l.setAttribute("in2","inverse"),l.setAttribute("result","shadow"),e.appendChild(l),(c=document.createElementNS(t,"feComposite")).setAttribute("operator","over"),c.setAttribute("in","shadow"),c.setAttribute("in2","SourceGraphic"),e.appendChild(c),m.config.showInnerShadow&&(m.canvas.canvas.childNodes[2].setAttribute("filter","url("+window.location.pathname+"#"+f+")"),m.canvas.canvas.childNodes[3].setAttribute("filter","url("+window.location.pathname+"#"+f+")")),c=null};var Y=function(){for(var t=3,n=document.createElement("div"),e=n.getElementsByTagName("i");n.innerHTML="\x3c!--[if gt IE "+ ++t+"]>