diff -r 5b32dc297d05 -r 3c36c452f013 sysmodellibs/sysmodelgen/core/draw.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysmodellibs/sysmodelgen/core/draw.xsl Wed Oct 13 16:21:25 2010 +0100 @@ -0,0 +1,1722 @@ + + + + + + + + + + + + + + + + + + + + ER5ER5U + 6.0 6.1 6.2 + 7.0 7.0s + 8.0 8.0a 8.0b8.1 8.1a 8.1b + 9.0 9.1 9.2 9.3 + 9.4 ^1tb91 ^2 tb92 9.5 ^3 tb101 9.6 ^4 + ^5 ^6 ^7 ^8 ^9 ^10 + Future + + + + + + + + + + + + + + + + + + + + + + + + + + + + resolution="" + + + + component + + - + + + + resized() + resized() + resized() + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +var curId = ''; +function clear(id) { + if(curId != '') off(curId); + return curId=id; +} + + +function on(id) { + var cur =document.getElementById(id) + cur.setAttribute('visibility','visible'); + + if(!cur.hasAttribute('wrapenated')) { + cur.setAttribute('wrapenated','true'); + wrapalltext(cur) + } + + return cur; +} + +function off(id) { + document.getElementById(id).setAttribute('visibility','hidden'); +} + + + + + +function splitup(txt) { + var a = new Array; + var t = txt; + var found + while((found = t.match(/(^[\u3041-\u309e\u30a1-\u30fe\u4e00-\ufa2d])([\u3041-\u309e\u30a1-\u30fe\u4e00-\ufa2d].*)$/))|| ( found = t.match(/^([^ \u200b\xad-]+[ \u200b\xad-]+)(.*)$/))) { + a.push(found[1]); + t=found[2]; + } + a.push(t); + return a; +} + + len) + node.setAttribute('letter-spacing','-0.15em'); +} + +function whatSize(txt) { // convert a length into pixels + if(txt.match(/^[0-9.-]+$/)) return txt; + return; +} + + +function wrapalltext(node) { + if(!node) node= document; + var all = node.getElementsByTagNameNS(svgns,'text'); + var i=0; + for (i=0; i l) { // if the line with this word at the end is bigger than the available space... + txt.data=was.replace(/ +$/,"").replace(/\xad(.)/,"$1").replace(/\u200b/g,""); // remove zero-width spaces and trailing spaces and soft hyphens + // if it's still too big then decrease the letter spacing + if( tspan.getComputedTextLength() > l ) crush(tspan,l); + tspan = document.createElementNS(svgns,'tspan'); + tspan.setAttribute('dy',"1em"); + nlines++; + tspan.setAttribute('x',cur.getAttribute('x')); + cur.appendChild(tspan); + txt = document.createTextNode(''); + tspan.appendChild(txt); + zero = tspan.getComputedTextLength(); + txt.data+=words[i]; + } + } + txt.data=txt.data.replace(/ +$/,"").replace(/\xad(.)/,"$1").replace(/\u200b/g,""); // remove zero-width spaces and trailing spaces and soft hyphens + if( tspan.getComputedTextLength() > l ) crush(tspan,l); + var align =cur.getAttribute('dy'); + if(align=='0.375em') { // middle aligned + first.setAttribute('dy',((1-nlines ) / 2 + 0.375 )+"em"); + } else if(align=='0.75em' || align=='1em') { // top (or above) aligned + first.setAttribute('dy',align) + } else { // bottom aligned (default) + first.setAttribute('dy',(1-nlines)+"em"); + } +} +]]> + + + + + +var pandandzoom=null; +function endpanning() + { + if(pandandzoom) + { + window.clearInterval(pandandzoom) + pandandzoom=null + } + } + +function repeatpan(x,y) + { + endpanning() + panning(x,y) + pandandzoom = window.setInterval('panning('+x+','+y+')', 100); + } + +function panning(x,y) + { + document.rootElement.currentTranslate.x += x + document.rootElement.currentTranslate.y += y + } + +function repeatzoom(z) + { + endpanning() + zoom(z) + pandandzoom = window.setInterval('zoom('+z+')', 100); + } + + + + +function movelegend(id) + { + var parent = document.getElementById(id); + var legend = document.getElementById('legend-box'); + parent.appendChild(legend); + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + font-family: '' + + + + + + + + + + + + + + + + + + + + + + +1 + + + + details + / + SubBlocks + Blocks + Layers + Components + Collections + + + Invalid element id="". Cannot generate link. + + + /.html + + + + + + + + '' + Arial + + + + + + + + + 4.233 + 6.3495 + 4.3 + + + + + + + + + + + + fill:!important; + fill:!important; + + + + + + ; + + + + + + + + + + + + 100% + 0% + % + + + + + 100% + 0% + % + + + + + 100% + 0% + % + + + + + 100% + 0% + % + + + + + + + + + + + + + + + + + + + + + + + + bg + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + url(#bg) + + + + + + + url( + + ) + + + + url( + + ) + + + + + + + + + + + + + + + + + + + fill:; + + + + + + + + + + + +stroke-width: + 2 + 0.4 +; + +grey + + + + + + + + fill:none + url() + ; stroke: none; stroke-width: 0; + + + + + + + + #Patternradial-grad + #Patternstriped-diag-up + + + + +#Borderbox + + + + + + + + + + + + Unrecognised elementn not supported + + + + + + + meta rel="" not supported + + + + meta rel="" in not supported + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + layer "" does not exist + + + + + layer "" does not exist + + + + + "" is after "" + + + + + Layer group cannot be bounded by spanned layer "" + + + + + Layer group cannot be bounded by spanned layer "" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.375em + + + + + + + + + + + + + + + + + + placeholder + nested + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + translate( ) + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + 0.375em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + translate(0 ) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.375em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + middle + + 0.375em + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + on('-content-');off('-label-'); + off('-content-');on('-label-'); + + + -label- + + + -content- + hidden + + + + + + + -content- + hidden + + + + + + + + on('-content-') + off('-content-') + + + -content- + hidden + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file