dojox/geo/charting/_base.js

  • Provides:

    • dojox.geo.charting._base
  • Requires:

    • dojo.NodeList-traverse in common in project dojo
    • dojox.gfx.matrix in common
    • dijit.Tooltip in common in project dijit
  • dojox.geo.charting.showTooltip

    • type
      Function
    • parameters:
      • innerHTML: (typeof String)
      • gfxObject: (typeof dojox.gfx.shape)
      • position: (typeof String[])
    • source: [view]
        var arroundNode = dgc._normalizeArround(gfxObject);
        return dijit.showTooltip(innerHTML, arroundNode, position);
    • summary
  • dojox.geo.charting.hideTooltip

    • type
      Function
    • parameters:
      • gfxObject: (typeof dojox.gfx.shape)
    • source: [view]
        return dijit.hideTooltip(gfxObject);
    • summary
  • dojox.geo.charting._normalizeArround

    • type
      Function
    • parameters:
      • gfxObject: (typeof )
    • source: [view]
        var bbox = dgc._getRealBBox(gfxObject);
        //var bbox = gfxObject.getBoundingBox();
        //get the real screen coords for gfx object
        var realMatrix = gfxObject._getRealMatrix() || {xx:1,xy:0,yx:0,yy:1,dx:0,dy:0};
        var point = dojox.gfx.matrix.multiplyPoint(realMatrix, bbox.x, bbox.y);
        var gfxDomContainer = dojo.coords(dgc._getGfxContainer(gfxObject));
        gfxObject.x = dojo.coords(gfxDomContainer,true).x + point.x,
        gfxObject.y = dojo.coords(gfxDomContainer,true).y + point.y,
        gfxObject.width = bbox.width * realMatrix.xx,
        gfxObject.height = bbox.height * realMatrix.yy
        return gfxObject;
    • summary
  • dojox.geo.charting._getGfxContainer

    • type
      Function
    • parameters:
      • gfxObject: (typeof )
    • source: [view]
        return (new dojo.NodeList(gfxObject.rawNode)).parents("div")[0];
    • summary
  • dojox.geo.charting._getRealBBox

    • type
      Function
    • parameters:
      • gfxObject: (typeof )
    • source: [view]
        var bboxObject = gfxObject.getBoundingBox();
        if(!bboxObject){//the gfx object is group
         var shapes = gfxObject.children;
         var bboxObject = dojo.clone(dgc._getRealBBox(shapes[0]));
         dojo.forEach(shapes, function(item){
          var nextBBox = dgc._getRealBBox(item);
          bboxObject.x = Math.min(bboxObject.x, nextBBox.x);
          bboxObject.y = Math.min(bboxObject.y, nextBBox.y);
          bboxObject.endX = Math.max(bboxObject.x + bboxObject.width, nextBBox.x + nextBBox.width);
          bboxObject.endY = Math.max(bboxObject.y + bboxObject.height, nextBBox.y + nextBBox.height);
         });
         bboxObject.width = bboxObject.endX - bboxObject.x;
         bboxObject.height = bboxObject.endY - bboxObject.y;
        }
        return bboxObject;
    • summary
  • dojox.geo.charting._base

    • type
      Object
    • summary
  • dojox.geo.charting

    • type
      Object
    • summary
  • dojox.geo

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary