mirror of https://gitlab.com/ita1024/waf.git
Cosmetic changes
This commit is contained in:
parent
c06a19b9d2
commit
ca6fe005ef
|
@ -19,9 +19,6 @@ except:
|
||||||
from queue import Queue
|
from queue import Queue
|
||||||
from waflib import Runner, Options, Task, Logs, Errors
|
from waflib import Runner, Options, Task, Logs, Errors
|
||||||
|
|
||||||
#import random
|
|
||||||
#random.seed(100)
|
|
||||||
|
|
||||||
SVG_TEMPLATE = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
SVG_TEMPLATE = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0"
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0"
|
||||||
|
@ -35,13 +32,12 @@ SVG_TEMPLATE = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
var svg = document.getElementsByTagName('svg')[0];
|
var svg = document.getElementsByTagName('svg')[0];
|
||||||
|
|
||||||
svg.addEventListener('mouseover', function(e) {
|
svg.addEventListener('mouseover', function(e) {
|
||||||
|
|
||||||
var g = e.target.parentNode;
|
var g = e.target.parentNode;
|
||||||
var x = document.getElementById('r_' + g.id);
|
var x = document.getElementById('r_' + g.id);
|
||||||
if (x) {
|
if (x) {
|
||||||
g.setAttribute('class', g.getAttribute('class') + ' over');
|
g.setAttribute('class', g.getAttribute('class') + ' over');
|
||||||
x.setAttribute('class', x.getAttribute('class') + ' over');
|
x.setAttribute('class', x.getAttribute('class') + ' over');
|
||||||
showInfo(e, g.id, e.target.attributes.tooltip.value);
|
showInfo(e, g.id, e.target.attributes.tooltip.value);
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
|
@ -60,7 +56,7 @@ ${if project.tooltip}
|
||||||
tooltip = document.getElementById('tooltip');
|
tooltip = document.getElementById('tooltip');
|
||||||
|
|
||||||
var t = document.getElementById('tooltiptext');
|
var t = document.getElementById('tooltiptext');
|
||||||
t.firstChild.data = txt+" "+ details;
|
t.firstChild.data = txt + " " + details;
|
||||||
|
|
||||||
var x = evt.clientX + 9;
|
var x = evt.clientX + 9;
|
||||||
if (x > 250) { x -= t.getComputedTextLength() + 16; }
|
if (x > 250) { x -= t.getComputedTextLength() + 16; }
|
||||||
|
|
Loading…
Reference in New Issue