//>>built
define("dojox/charting/axis2d/common",["dojo/_base/lang","dojo/_base/window","dojo/dom-geometry","dojox/gfx","dojo/has"],function(p,l,t,q,u){var v=p.getObject("dojox.charting.axis2d.common",!0),r=function(b){b.marginLeft="0px";b.marginTop="0px";b.marginRight="0px";b.marginBottom="0px";b.paddingLeft="0px";b.paddingTop="0px";b.paddingRight="0px";b.paddingBottom="0px";b.borderLeftWidth="0px";b.borderTopWidth="0px";b.borderRightWidth="0px";b.borderBottomWidth="0px"};return p.mixin(v,{createText:{gfx:function(b,
c,e,m,g,h,k,n){return c.createText({x:e,y:m,text:h,align:g}).setFont(k).setFill(n)},html:function(b,c,e,m,g,h,k,n,d){c=l.doc.createElement("div");var a=c.style;b.getTextDir&&(c.dir=b.getTextDir(h));r(a);a.font=k;c.innerHTML=String(h).replace(/\s/g,"\x26nbsp;");a.color=n;a.position="absolute";a.left="-10000px";l.body().appendChild(c);var w=q.normalizedLength(q.splitFontString(k).size);if(!d)if(c.getBoundingClientRect){var f=c.getBoundingClientRect();f=f.width||f.right-f.left}else f=t.getMarginBox(c).w;
"rtl"==c.dir&&(e+=d?d:f);l.body().removeChild(c);a.position="relative";if(d)switch(a.width=d+"px",g){case "middle":a.textAlign="center";a.left=e-d/2+"px";break;case "end":a.textAlign="right";a.left=e-d+"px";break;default:a.left=e+"px",a.textAlign="left"}else switch(g){case "middle":a.left=Math.floor(e-f/2)+"px";break;case "end":a.left=Math.floor(e-f)+"px";break;default:a.left=Math.floor(e)+"px"}a.top=Math.floor(m-w)+"px";a.whiteSpace="nowrap";d=l.doc.createElement("div");a=d.style;r(a);a.width="0px";
a.height="0px";d.appendChild(c);b.node.insertBefore(d,b.node.firstChild);u("dojo-bidi")&&b.htmlElementsRegistry.push([d,e,m,g,h,k,n]);return d}}})});