forked from shawnbot/aight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaight.d3.min.js
1 lines (1 loc) · 859 Bytes
/
aight.d3.min.js
1
(function(e){aight.d3={};if(aight.browser.ie8){function t(e,t,n){var r=function(t){var r=this.node().style[e];return n?n.call(this,r,t):r},i=function(n,r){return this.each(function(){var i=typeof r=="function"?r.apply(this,arguments):r;this.style[e]=t?t.call(this,i,n):i})};return function(){return arguments.length>1?i.apply(this,arguments):r.call(this)}}var n={"background-image":t("backgroundImage"),"background-repeat":t("backgroundRepeat"),"background-position":t("backgroundPosition"),"background-color":t("backgroundColor"),opacity:t("filter",function(t){return["alpha(opacity=",Math.round(t*100),")"].join("")},function(t){var n=(t||"").match(/opacity=(\d+)/)[1]||100;return n/100})};aight.d3.style=n;var r=d3.selection.prototype.style;d3.selection.prototype.style=function(e){var t=n.hasOwnProperty(e)?n[e]:r;return t.apply(this,arguments)}}})(this);