//>>built
define("dojox/geo/charting/_base","dojo/_base/lang dojo/_base/array ../../main dojo/_base/html dojo/dom-geometry dojox/gfx/matrix dijit/Tooltip dojo/_base/NodeList dojo/NodeList-traverse".split(" "),function(e,m,n,q,f,p,g,h,r){var d=e.getObject("geo.charting",!0,n);d.showTooltip=function(b,a,c){a=d._normalizeArround(a);return g.show(b,a,c)};d.hideTooltip=function(b){return g.hide(b)};d._normalizeArround=function(b){var a=d._getRealBBox(b),c=b._getRealMatrix()||{xx:1,xy:0,yx:0,yy:1,dx:0,dy:0},k=p.multiplyPoint(c,
a.x,a.y),l=d._getGfxContainer(b);b.x=f.position(l,!0).x+k.x;b.y=f.position(l,!0).y+k.y;b.w=a.width*c.xx;b.h=a.height*c.yy;return b};d._getGfxContainer=function(b){return b.surface?(new h(b.surface.rawNode)).parents("div")[0]:(new h(b.rawNode)).parents("div")[0]};d._getRealBBox=function(b){var a=b.getBoundingBox();a||(b=b.children,a=e.clone(d._getRealBBox(b[0])),m.forEach(b,function(c){c=d._getRealBBox(c);a.x=Math.min(a.x,c.x);a.y=Math.min(a.y,c.y);a.endX=Math.max(a.x+a.width,c.x+c.width);a.endY=Math.max(a.y+
a.height,c.y+c.height)}),a.width=a.endX-a.x,a.height=a.endY-a.y);return a};return d});