Commit bee745af authored by zhoumaotao's avatar zhoumaotao

代码调整4

parent cb6b4814
Pipeline #207 failed with stages
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" id="图层_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="146px" height="36px" viewBox="0 0 146 36" enable-background="new 0 0 146 36" xml:space="preserve">
<g>
<g>
<path fill="#EE7800" d="M121.776,26.806c0.63-0.409,1.321-0.731,2.058-0.951v8.35c-0.841,1.919-7.469,1.809-8.803,1.809
s-7.962,0.11-8.803-1.809l-0.001-1.988c0-0.509,0.261-0.98,0.688-1.258c0.63-0.409,1.322-0.731,2.059-0.951v3.045
c0.001,0.018,0.1,0.548,6.058,0.548c6.058,0,6.059-0.548,6.059-0.548l-0.001-4.987C121.089,27.556,121.35,27.083,121.776,26.806z
M115.031,19.425c-1.334,0-7.962-0.11-8.803,1.81v8.349c0.736-0.219,1.428-0.542,2.058-0.951c0.427-0.277,0.688-0.749,0.688-1.259
v-4.987c0,0,0-0.548,6.058-0.548c6.059,0,6.059,0.548,6.059,0.548l0,0v3.046c0.736-0.221,1.428-0.543,2.058-0.952
c0.427-0.277,0.687-0.749,0.687-1.259v-1.986C122.993,19.314,116.365,19.425,115.031,19.425z"/>
<path fill="#EE7800" d="M36.611,33.052c0,0,0,0.548-5.935,0.548c-5.935,0-5.935-0.548-5.935-0.548V19.655h-2.745v14.549
c0.841,1.92,7.346,1.81,8.68,1.81c1.334,0,7.839,0.11,8.68-1.81V19.655h-2.745V33.052z"/>
<path fill="#EE7800" d="M143.429,19.655v12.633l-6.51-6.511l-6.511,6.511V19.655h-2.597v16.127h1.822
c0.439,0,0.862-0.175,1.173-0.485l6.112-6.112l6.111,6.112c0.312,0.311,0.733,0.485,1.174,0.485h1.821V19.655H143.429z"/>
<path fill="#EE7800" d="M81.218,26.264h-7.272c-0.509,0-0.984,0.259-1.258,0.687c-0.369,0.576-0.66,1.207-0.859,1.876h7.509
c0.005,0.001,0.296,0.018,0.296,2.197c0,1.9-0.297,1.9-0.297,1.9H67.443c0,0-0.503,0.019-0.503-5.205
c0-5.205,0.503-5.205,0.503-5.205H79.66c0.557,0,1.082-0.274,1.383-0.741c0.419-0.649,0.749-1.36,0.975-2.117H66.003
c-1.759,0.771-1.658,6.842-1.658,8.063s-0.101,7.293,1.658,8.063h15.215c1.038-0.454,0.979-4.038,0.979-4.759
C82.196,30.302,82.256,26.718,81.218,26.264z"/>
<path fill="#EE7800" d="M101.275,28.827c1.038-0.455,0.979-3.865,0.979-4.586c0-0.722,0.06-4.131-0.979-4.586H85.994v2.858h13.399
c0,0,0.297,0,0.297,1.728c0,2.022-0.297,2.022-0.297,2.022H85.994v9.519h2.598v-6.955h4.35l6.47,6.47
c0.312,0.311,0.733,0.485,1.174,0.485h3.262l-6.955-6.955H101.275z"/>
<path fill="#EE7800" d="M14.842,26.264L14.842,26.264H3.423c-0.827,0-0.827-0.828-0.827-0.828v-2.094c0,0,0-0.828,0.827-0.828
h12.28c0.556,0,1.081-0.274,1.382-0.741c0.419-0.649,0.749-1.36,0.975-2.117H3.423c-3.397,0-3.397,2.955-3.397,2.955v3.261
c0,0,0,2.955,3.397,2.955h11.418l0,0c0.827,0,0.827,0.827,0.827,0.827v2.442c0,0,0,0.828-0.827,0.828H2.383
c-0.556,0-1.081,0.274-1.383,0.741c-0.418,0.649-0.749,1.36-0.974,2.117h14.816c3.398,0,3.398-2.955,3.398-2.955v-3.608
C18.24,29.219,18.24,26.264,14.842,26.264z"/>
<path fill="#EE7800" d="M58.195,32.074L46.262,20.142c-0.311-0.312-0.733-0.486-1.173-0.486h-1.756v16.127h2.745V23.364
l11.933,11.933c0.312,0.311,0.733,0.485,1.173,0.485h1.756V19.655h-2.744V32.074z"/>
</g>
<g>
<g>
<path fill="#666464" d="M136.229,11.911h1.336c0,0-0.077,2.093-0.692,3.764h-1.336C136.151,14.004,136.229,11.911,136.229,11.911
z M144.345,12.428c0.003,1.146,0.083,2.144,0.367,3.247h1.212c-0.285-1.104-0.365-2.101-0.368-3.247H144.345z M139.88,15.675
h1.212c0.284-1.104,0.364-2.101,0.367-3.247h-1.211C140.245,13.574,140.165,14.571,139.88,15.675z M143.477,11.807v3.868h-1.251
v-3.868h-1.579c-0.301,0-0.544-0.243-0.544-0.544V7.551c0-0.301,0.243-0.544,0.544-0.544h1.369l0.241-0.805h-2.81v5.661
c0,1.446,0.011,2.453-0.228,3.812h-1.252c0.238-1.358,0.228-2.365,0.228-3.812l0.001-5.46c0-0.961,0.393-1.452,1.452-1.452h6.377
c-0.112,0.377-0.284,0.728-0.505,1.043c-0.092,0.131-0.244,0.208-0.404,0.208h-1.608l-0.241,0.805h1.745
c0.301,0,0.544,0.243,0.544,0.544v3.712c0,0.301-0.243,0.544-0.544,0.544H143.477z M141.171,8.935h3.316V8.075h-3.316V8.935z
M141.171,10.738h3.316V9.814h-3.316V10.738z M135.836,5.473l0.411,2.209h1.317l-0.411-2.209H135.836z M135.836,8.691l0.411,2.21
h1.317l-0.411-2.21H135.836z"/>
<path fill="#666464" d="M76.013,5.354h-4.217c-0.361,0-0.653,0.292-0.653,0.652v8.614c0,0.36,0.292,0.653,0.653,0.653h4.217
c0.36,0,0.652-0.293,0.652-0.653V6.006C76.665,5.646,76.373,5.354,76.013,5.354z M75.369,13.978h-2.931V10.67h2.931V13.978z
M75.369,9.375h-2.931V6.649h2.931V9.375z M69.803,9.46c0.318,0.615,0.653,1.857,0.653,4.357c0,0.36-0.293,0.652-0.653,0.652
l-0.947-0.001c-0.161,0-0.313-0.076-0.405-0.208c-0.233-0.33-0.415-0.7-0.533-1.097h1.225c0-2.604-0.776-3.408-1.093-3.628
c-0.053-0.036-0.051-0.112,0.002-0.149c0.296-0.208,0.991-0.927,1.081-3.14h-1.796v9.428H66.04V5.604
c0-0.36,0.291-0.652,0.651-0.652c0.848,0,2.254,0,3.105,0c0.366,0,0.66,0.3,0.651,0.666C70.396,7.771,70.093,8.885,69.803,9.46z"
/>
<path fill="#666464" d="M98.735,8.356h-1.521c0.692-1.569,0.826-2.884,0.826-2.884h1.521C99.563,5.473,99.428,6.787,98.735,8.356
z M93.272,8.356c-0.693-1.569-0.827-2.884-0.827-2.884h-1.521c0,0,0.134,1.314,0.826,2.884H93.272z M98.158,14.379
c-0.184,0-0.331-0.147-0.331-0.33v-3.426h2.539V9.327h-4.408V4.951h-1.43v4.376h-4.456v1.296h2.402
c-0.173,1.715-0.918,3.207-2.223,4.44c-0.139,0.131-0.278,0.252-0.414,0.366c-0.212,0.178-0.051,0.245,0.089,0.245h1.782
c1.292-1.424,2.048-3.152,2.208-5.052h2.479v3.49c0,0.862,0.7,1.562,1.563,1.562h2.035c0.161,0,0.313-0.076,0.406-0.208
c0.23-0.328,0.41-0.694,0.527-1.088H98.158z"/>
<path fill="#666464" d="M119.134,14.379c-0.183,0-0.331-0.147-0.331-0.33v-1.081h3.304c0.36,0,0.652-0.292,0.652-0.652V6.854
c0-0.36-0.292-0.652-0.652-0.652h-3.304V4.951h-1.43v1.251h-3.168c-0.36,0-0.652,0.292-0.652,0.652v5.461
c0,0.36,0.292,0.652,0.652,0.652h3.168v1.146c0,0.862,0.699,1.562,1.563,1.562h3.968c0.16,0,0.313-0.076,0.405-0.208
c0.23-0.328,0.411-0.694,0.527-1.088H119.134z M121.543,11.754h-2.74v-1.656h2.74V11.754z M121.543,7.417v1.547h-2.74V7.417
H121.543z M114.768,7.417h2.605v1.547h-2.605V7.417z M114.768,11.754v-1.656h2.605v1.656H114.768z"/>
</g>
</g>
</g>
</svg>
This source diff could not be displayed because it is too large. You can view the blob instead.

var _tmSender = new Array();
var _tmAttr = new Array();
var _tmTimerId = new Array();
function parseBoolean( s )
{
return ( s.localeCompare( "true" ) == 0 );
};
function GetPropertyValue( Sender, ParamName )
{
var ret = 0;
if(!Sender) return false
var s = Sender.getAttribute( "onget" + ParamName );
if( s == null )
{
if( ParamName == "angle" )
return GetAngle( Sender );
else if( ParamName == "text" )
return GetText( Sender );
else if( ParamName == "visible" )
return GetVisible( Sender );
else if( ParamName == "picture" )
return GetPicture( Sender );
else
s = Sender.getAttribute( ParamName );
}else
eval( s );
return ret;
};
function SetPropertyValue( Sender, ParamName, Value )
{
if(!Sender) return false
var s = Sender.getAttribute( "onset" + ParamName );
if( s == null )
{
if( ParamName == "angle" )
SetAngle( Sender, Value );
else if( ParamName == "text" )
SetText( Sender, Value );
else if( ParamName == "visible" )
SetVisible( Sender, Value );
else if( ParamName == "picture" )
SetPicture( Sender, Value );
else
Sender.setAttribute( ParamName, Value );
}else
eval( s );
};
function GetUnitCount( Sender )
{
var ret = 0;
for( var i = 0; i < Sender.childNodes.length; i++ )
{
if( Sender.childNodes[i].nodeType == 1 )
ret++;
};
return ret;
};
function GetUnits( Sender, ndx )
{
var m = 0;
for( var i = 0; i < Sender.childNodes.length; i++ )
{
if( Sender.childNodes[i].nodeType == 1 )
{
if( m == ndx )
{
m = i;
break;
};
m++;
};
};
return Sender.childNodes[m];
};
function GetUnitByName( Sender, AName )
{
for( var i = 0; i < Sender.childNodes.length; i++ )
{
var d = Sender.childNodes[i];
if( d.nodeType == 1 )
{
if( d.id == AName )
return d;
};
};
return 0;
};
function gettransform( Sender, pname )
{
var s = Sender.getAttribute( "transform" );
var ndx1 = s.indexOf( pname );
if( ndx1 != -1 )
{
ndx1 += pname.length;
if( s.charAt( ndx1 ) == "(" )
{
var ndx2 = s.indexOf( ")", ndx1 );
if( ndx2 != -1 )
return s.substr( ndx1 + 1, ndx2 - ndx1 - 1 );
};
};
return "0";
};
function settransform( Sender, pname, avalue )
{
var s = Sender.getAttribute( "transform" );
var ndx1 = s.indexOf( pname );
if( ndx1 != -1 )
{
ndx1 += pname.length;
if( s.charAt( ndx1 ) == "(" )
{
var ndx2 = s.indexOf( ")", ndx1 );
if( ndx2 != -1 )
{
Sender.setAttribute( "transform", s.substr( 0, ndx1 + 1 ) + avalue + s.substr( ndx2 ) );
return;
};
};
};
s = s + "," + pname + "(" + avalue + ")";
Sender.setAttribute( "transform", s );
};
function GetXOrigin( Sender )
{
var s = gettransform( Sender, "translate" );
var ar = s.split(" ");
if( ar.length == 2 )
return parseFloat( ar[0] );
return 0;
};
function GetYOrigin( Sender )
{
var s = gettransform( Sender, "translate" );
var ar = s.split(" ");
if( ar.length == 2 )
return parseFloat( ar[1] );
return 0;
};
function MoveBy( Sender, dx, dy )
{
var s = gettransform( Sender, "translate" );
var ar = s.split( " " );
if( ar.length == 2 )
{
var x = parseFloat( ar[0] ) + dx;
var y = parseFloat( ar[1] ) + dy;
settransform( Sender, "translate", x.toString() + "," + y.toString() );
};
};
function MoveTo( Sender, x, y )
{
settransform( Sender, "translate", x + "," + y );
};
function CopyUnit( Sender, child )
{
return Sender.appendChild( child.cloneNode( true ) );
};
function DeleteUnit( Sender, child )
{
Sender.removeChild( child );
};
function BringToFront( Sender, child )
{
Sender.appendChild( child );
};
function SendToBack( Sender, child )
{
Sender.insertBefore( child, Sender.childNodes[0] );
};
function GetAngle( Sender )
{
var s = gettransform( Sender, "rotate" );
var d = parseFloat( s );
return d;
};
function SetAngle( Sender, ag )
{
settransform( Sender, "rotate", ag.toFixed() );
};
function GetText( Sender )
{
return Sender.textContent;
};
function SetText( Sender, AText )
{
Sender.textContent = AText;
};
function GetPicture( Sender )
{
return Sender.getAttribute( "xlink:href" );
};
function SetPicture( Sender, afile )
{
Sender.setAttribute( "xlink:href", afile );
};
function GetVisible( Sender, vis )
{
var s = Sender.getAttribute( "visibility" );
if( s == "visible" )
return true;
else
return false;
};
function SetVisible( Sender, vis )
{
if( vis == true )
Sender.setAttribute( "visibility", "visible" );
else
Sender.setAttribute( "visibility", "hidden" );
};
function GetTimerSender( ndx )
{
return _tmSender[ndx];
};
function SetTimer( Sender, Attr, Interval, ontimer )
{
var i = 0;
for( i = 0; i < _tmSender.length; i++ )
{
if( _tmSender[i] == Sender && _tmAttr[i] == Attr )
{
clearInterval( _tmTimerId[i] );
_tmTimerId[i] = 0;
break;
};
};
if( i == _tmSender.length )
{
_tmSender.push( Sender );
_tmAttr.push( Attr );
_tmTimerId.push( 0 );
};
if( Interval > 0 )
{
var s = ontimer;
if( ontimer == null )
s = Sender.getAttribute( "timer" );
s = "Sender = GetTimerSender( " + i + " );" + s;
_tmTimerId[i] = setInterval( s, Interval );
};
};
function ClearTimer()
{
var i = 0;
var n = _tmSender.length;
for( i = 0; i < n; i++ )
{
if( _tmTimerId[i] != 0 )
{
clearInterval( _tmTimerId[i] );
break;
};
};
_tmSender.splice( 0, n );
_tmAttr.splice( 0, n );
_tmTimerId.splice( 0, n );
};
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//上面是Visual Graph图形导出svg后常用的通用函数部分
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment