All Downloads are FREE. Search and download functionalities are using the official Maven repository.

.axle-core_2.13.0.5.3.source-code.svgfunctions.js Maven / Gradle / Ivy

There is a newer version: 0.6.6
Show newest version

function init(evt) {
  if ( window.svgDocument == null ) {
    svgDocument = evt.target.ownerDocument;
  }
}

function RectHover(evt, i, c) {
  rect = svgDocument.getElementById('rect' + i);
  if( c != null ) {
    rect.setAttributeNS(null, "fill", c)  
  }
  tooltiptext = svgDocument.getElementById('tooltiptext' + i);
  tooltipbg = svgDocument.getElementById('tooltipbg' + i);
  if( tooltipbg != null) {
    tbb = tooltiptext.getBBox();
    tooltipbg.setAttributeNS(null, "width", tbb.width);
    tooltipbg.setAttributeNS(null, "height", tbb.height);
    tooltipbg.setAttributeNS(null, "x", tbb.x);
    tooltipbg.setAttributeNS(null, "y", tbb.y);
    tooltipbg.setAttributeNS(null, "visibility", "visible");
  }
  tooltiptext.setAttributeNS(null,"visibility","visible");
}

function RectUnhover(evt, i, c) {
  rect = svgDocument.getElementById('rect' + i);
  if( c != null ) {
    rect.setAttributeNS(null, "fill", c)  
  }
  tooltiptext = svgDocument.getElementById('tooltiptext' + i);
  tooltiptext.setAttributeNS(null,"visibility","hidden");
  tooltipbg = svgDocument.getElementById('tooltipbg' + i);
  if( tooltipbg != null ) {
    tooltipbg.setAttributeNS(null,"visibility","hidden");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy