.axle-core_2.13.0.5.3.source-code.svgfunctions.js Maven / Gradle / Ivy
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");
}
}